mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8011661: Insufficient memory message says "malloc" when sometimes it should say "mmap"
Reviewed-by: coleenp, zgu, hseigel
This commit is contained in:
parent
a2f5f4ca1b
commit
0f7adcc3d9
31 changed files with 78 additions and 59 deletions
|
@ -229,11 +229,11 @@ void report_fatal(const char* file, int line, const char* message)
|
|||
}
|
||||
|
||||
void report_vm_out_of_memory(const char* file, int line, size_t size,
|
||||
const char* message) {
|
||||
VMErrorType vm_err_type, const char* message) {
|
||||
if (Debugging) return;
|
||||
|
||||
Thread* thread = ThreadLocalStorage::get_thread_slow();
|
||||
VMError(thread, file, line, size, message).report_and_die();
|
||||
VMError(thread, file, line, size, vm_err_type, message).report_and_die();
|
||||
|
||||
// The UseOSErrorReporting option in report_and_die() may allow a return
|
||||
// to here. If so then we'll have to figure out how to handle it.
|
||||
|
@ -344,7 +344,7 @@ void test_error_handler(size_t test_num)
|
|||
msg, eol, msg, eol, msg, eol, msg, eol, msg, eol,
|
||||
msg, eol, msg, eol, msg, eol, msg, eol, msg, eol,
|
||||
msg, eol, msg, eol, msg, eol, msg, eol, msg));
|
||||
case 8: vm_exit_out_of_memory(num, "ChunkPool::allocate");
|
||||
case 8: vm_exit_out_of_memory(num, OOM_MALLOC_ERROR, "ChunkPool::allocate");
|
||||
case 9: ShouldNotCallThis();
|
||||
case 10: ShouldNotReachHere();
|
||||
case 11: Unimplemented();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue