Skip to content

Commit d118775

Browse files
authoredSep 8, 2022
7903292: jcstress: Allocation profiling is not available on older JDKs
1 parent e01c5f8 commit d118775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎jcstress-core/src/main/java/org/openjdk/jcstress/vm/AllocProfileSupport.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private static boolean tryInitAlloc() {
6464

6565
try {
6666
THREAD_ID_GETTER = Thread.class.getMethod("threadId");
67-
} catch (NoSuchMethodError nsme) {
67+
} catch (NoSuchMethodException nsme) {
6868
THREAD_ID_GETTER = Thread.class.getMethod("getId");
6969
}
7070

0 commit comments

Comments
 (0)
Please sign in to comment.