Skip to content

Commit

Permalink
Dump only on suitable errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmelter-sap committed Nov 6, 2023
1 parent 43ce055 commit d5a0098
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hotspot/share/utilities/debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ void report_vm_out_of_memory(const char* file, int line, size_t size,
VMErrorType vm_err_type, const char* detail_fmt, ...) {
// SapMachine RS 2023-11-03: Check if we should to an emrgency dump for the malloc trace.
#if defined(LINUX) || defined(__APPLE__)
sap::MallocStatistic::emergencyDump();
if ((vm_err_type == OOM_MALLOC_ERROR) || (vm_err_type == OOM_MMAP_ERROR)) {
sap::MallocStatistic::emergencyDump();
}
#endif

va_list detail_args;
Expand Down

0 comments on commit d5a0098

Please sign in to comment.