mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8191101: Show register content in hs-err file on assert
Reviewed-by: adinn, clanger, simonis
This commit is contained in:
parent
213862d866
commit
3e603a776e
15 changed files with 272 additions and 22 deletions
|
@ -3661,6 +3661,13 @@ jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
|
|||
// Timing (must come after argument parsing)
|
||||
TraceTime timer("Create VM", TRACETIME_LOG(Info, startuptime));
|
||||
|
||||
#ifdef CAN_SHOW_REGISTERS_ON_ASSERT
|
||||
// Initialize assert poison page mechanism.
|
||||
if (ShowRegistersOnAssert) {
|
||||
initialize_assert_poison();
|
||||
}
|
||||
#endif // CAN_SHOW_REGISTERS_ON_ASSERT
|
||||
|
||||
// Initialize the os module after parsing the args
|
||||
jint os_init_2_result = os::init_2();
|
||||
if (os_init_2_result != JNI_OK) return os_init_2_result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue