< prev index next >

test/hotspot/jtreg/vmTestbase/gc/g1/unloading/loading/ClassLoadingHelper.java

Print this page
rev 59093 : imported patch randomness-code_vmTestbase_unloading

@@ -148,11 +148,11 @@
                 objectThread.setDaemon(true);
                 objectThread.start();
                 assertion.keepLink(new UnusedThreadKiller(objectThread.getId())); // UnusedThreadKiller
                 break;
             case STATIC_FIELD_OF_ROOT_CLASS:
-                RefHolder holder4 = new NullClassloaderHolder();
+                RefHolder holder4 = new NullClassloaderHolder(random.nextLong());
                 Object keep = holder4.hold(referenceToKeep);
                 if (keep != null) {
                     assertion.keepLink(keep);
                 }
                 break;
< prev index next >