Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.
/ jdk19 Public archive

Commit

Permalink
8289079: java/lang/Thread/jni/AttachCurrentThread/AttachTest.java#id1…
Browse files Browse the repository at this point in the history
… failed with "RuntimeException: Test failed"

Reviewed-by: dholmes, mcimadamore
  • Loading branch information
Alan Bateman committed Jun 27, 2022
1 parent 9c92da5 commit 7e13cdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ public static void main(String[] args) throws Exception {
.executeTestJava(opts)
.outputTo(System.out)
.errorTo(System.out);
int exitValue = outputAnalyzer.getExitValue();
if (exitValue != 0)
throw new RuntimeException("Test failed");
outputAnalyzer.shouldHaveExitValue(0);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static void main(String[] args) throws Throwable {
.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();
Expand Down

1 comment on commit 7e13cdb

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.