Skip to content

Commit

Permalink
8346193: Test runtime/ErrorHandling/TestDwarf.java fails build with c…
Browse files Browse the repository at this point in the history
…lang17
  • Loading branch information
sendaoYan committed Dec 16, 2024
1 parent 4fc43b0 commit 3a8e434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/runtime/frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ void frame::oops_do_internal(OopClosure* f, NMethodClosure* cf,
#ifndef PRODUCT
// simulate GC crash here to dump java thread in error report
if (CrashGCForDumpingJavaThread) {
char *t = nullptr;
volatile char *t = nullptr; // Use volatile modifier to make clang avoid 'dead code' elimination
*t = 'c';
}
#endif
Expand Down

0 comments on commit 3a8e434

Please sign in to comment.