We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43ad24f commit c97f56cCopy full SHA for c97f56c
src/hotspot/share/utilities/vmError.cpp
@@ -1770,8 +1770,8 @@ static void crash_with_sigfpe() {
1770
// crash with sigsegv at non-null address.
1771
static void crash_with_segfault() {
1772
1773
- char* const crash_addr = (char*)VMError::segfault_address;
1774
- *crash_addr = 'X';
+ int* crash_addr = reinterpret_cast<int*>(VMError::segfault_address);
+ *crash_addr = 1;
1775
1776
} // end: crash_with_segfault
1777
0 commit comments