equal
deleted
inserted
replaced
479 } |
479 } |
480 #endif // PRODUCT |
480 #endif // PRODUCT |
481 |
481 |
482 STEP("printing type of error") |
482 STEP("printing type of error") |
483 |
483 |
484 switch(_id) { |
484 switch(static_cast<unsigned int>(_id)) { |
485 case OOM_MALLOC_ERROR: |
485 case OOM_MALLOC_ERROR: |
486 case OOM_MMAP_ERROR: |
486 case OOM_MMAP_ERROR: |
487 if (_size) { |
487 if (_size) { |
488 st->print("# Native memory allocation "); |
488 st->print("# Native memory allocation "); |
489 st->print((_id == (int)OOM_MALLOC_ERROR) ? "(malloc) failed to allocate " : |
489 st->print((_id == (int)OOM_MALLOC_ERROR) ? "(malloc) failed to allocate " : |
1303 os::check_dump_limit(buffer, sizeof(buffer)); |
1303 os::check_dump_limit(buffer, sizeof(buffer)); |
1304 |
1304 |
1305 // reset signal handlers or exception filter; make sure recursive crashes |
1305 // reset signal handlers or exception filter; make sure recursive crashes |
1306 // are handled properly. |
1306 // are handled properly. |
1307 reset_signal_handlers(); |
1307 reset_signal_handlers(); |
|
1308 |
|
1309 EventShutdown e; |
|
1310 if (e.should_commit()) { |
|
1311 e.set_reason("VM Error"); |
|
1312 e.commit(); |
|
1313 } |
1308 |
1314 |
1309 TRACE_VM_ERROR(); |
1315 TRACE_VM_ERROR(); |
1310 |
1316 |
1311 } else { |
1317 } else { |
1312 // If UseOsErrorReporting we call this for each level of the call stack |
1318 // If UseOsErrorReporting we call this for each level of the call stack |