8289079: java/lang/Thread/jni/AttachCurrentThread/AttachTest.java#id1 failed with "RuntimeException: Test failed"

Reviewed-by: dholmes, mcimadamore
This commit is contained in:
Alan Bateman 2022-06-27 10:22:04 +00:00
parent 9c92da5249
commit 7e13cdb799
2 changed files with 2 additions and 4 deletions

View File

@ -63,8 +63,6 @@ public class AttachTest {
.executeTestJava(opts)
.outputTo(System.out)
.errorTo(System.out);
int exitValue = outputAnalyzer.getExitValue();
if (exitValue != 0)
throw new RuntimeException("Test failed");
outputAnalyzer.shouldHaveExitValue(0);
}
}

View File

@ -52,7 +52,7 @@ public class ImplicitAttach {
.findStatic(ImplicitAttach.class, "callback", MethodType.methodType(void.class));
MemorySegment upcallStub = abi.upcallStub(callback,
FunctionDescriptor.ofVoid(),
MemorySession.openImplicit());
MemorySession.global());
// void start_threads(int count, void *(*f)(void *))
SymbolLookup symbolLookup = SymbolLookup.loaderLookup();