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 99870b4 commit b68a942Copy full SHA for b68a942
src/hotspot/share/utilities/vmError.cpp
@@ -1754,8 +1754,8 @@ static void crash_with_sigfpe() {
1754
// crash with sigsegv at non-null address.
1755
static void crash_with_segfault() {
1756
1757
- char* const crash_addr = (char*) VMError::get_segfault_address();
1758
- *crash_addr = 'X';
+ int* crash_addr = reinterpret_cast<int*>(VMError::get_segfault_address());
+ *crash_addr = 1;
1759
1760
} // end: crash_with_segfault
1761
0 commit comments