Skip to content

Commit

Permalink
Synchronize remote classloader property updating, as this is accessed…
Browse files Browse the repository at this point in the history
… across multiple threads
  • Loading branch information
Col-E committed Sep 25, 2023
1 parent bc73b3b commit 943bb1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static Integer get(@Nonnull JvmClassInfo classInfo) {
* Loader ID associated with the class,
* used as key for {@link WorkspaceRemoteVmResource#getJvmClassloaderBundles()}.
*/
public static void set(@Nonnull JvmClassInfo classInfo, int loaderId) {
public static synchronized void set(@Nonnull JvmClassInfo classInfo, int loaderId) {
classInfo.setProperty(cache.computeIfAbsent(loaderId, RemoteClassloaderProperty::new));
}

Expand Down

0 comments on commit 943bb1e

Please sign in to comment.