8203431: TestFloatsOnStackDeopt.java throws java.lang.LinkageError: loader <bootstrap> attempted duplicate class definition for java.lang.invoke.BoundMethodHandle$Species_LLL

Reviewed-by: redestad
This commit is contained in:
Boris Ulasevich 2018-05-22 14:54:55 +02:00
parent 55ba3cad8b
commit 069d6f992b
2 changed files with 9 additions and 4 deletions

View File

@ -46,7 +46,6 @@ compiler/codegen/Test6896617.java 8193479 generic-all
compiler/compilercontrol/jcmd/ClearDirectivesFileStackTest.java 8140405 generic-all
compiler/jvmci/compilerToVM/GetResolvedJavaTypeTest.java 8158860 generic-all
compiler/jvmci/compilerToVM/InvalidateInstalledCodeTest.java 8163894 generic-all
compiler/runtime/TestFloatsOnStackDeopt.java 8203431 generic-all
compiler/tiered/LevelTransitionTest.java 8067651 generic-all
compiler/types/correctness/CorrectnessTest.java 8066173 generic-all
compiler/types/correctness/OffTest.java 8066173 generic-all

View File

@ -39,6 +39,7 @@ public class TestFloatsOnStackDeopt {
private static final int ITERS2 = 40000;
private static final float VALUE = 15.f;
public static String dummyString = "long long string";
static volatile boolean pleaseStop = false;
static void run_loop_with_safepoint(float[] a0, float b) {
// Non-counted loop with safepoint.
@ -54,9 +55,9 @@ public class TestFloatsOnStackDeopt {
// thread provokes frequent GC - together with +DeoptimizeALot and safepoint it forces executed function deoptimization
Thread th = new Thread() {
public void run() {
while(true) {
while (!pleaseStop) {
synchronized(this) { try { wait(1); } catch (Exception ex) {} }
dummyString += dummyString;
dummyString = new StringBuilder(dummyString).append(dummyString).toString();
if (dummyString.length() > 1024*1024) { dummyString = "long long string"; }
}
}
@ -77,7 +78,12 @@ public class TestFloatsOnStackDeopt {
if (errn > 0) break;
}
th.stop();
pleaseStop = true;
try {
th.join();
} catch (InterruptedException e) {
throw new Error("InterruptedException in main thread ", e);
}
return errn;
}