comparison src/share/vm/runtime/synchronizer.cpp @ 10161:746b070f5022

8011661: Insufficient memory message says "malloc" when sometimes it should say "mmap" Reviewed-by: coleenp, zgu, hseigel
author ccheung
date Tue, 30 Apr 2013 11:56:52 -0700
parents 5a9fa2ba85f0
children f2110083203d
comparison
equal deleted inserted replaced
10160:ed5a590835a4 10161:746b070f5022
1016 1016
1017 // NOTE: (almost) no way to recover if allocation failed. 1017 // NOTE: (almost) no way to recover if allocation failed.
1018 // We might be able to induce a STW safepoint and scavenge enough 1018 // We might be able to induce a STW safepoint and scavenge enough
1019 // objectMonitors to permit progress. 1019 // objectMonitors to permit progress.
1020 if (temp == NULL) { 1020 if (temp == NULL) {
1021 vm_exit_out_of_memory (sizeof (ObjectMonitor[_BLOCKSIZE]), "Allocate ObjectMonitors") ; 1021 vm_exit_out_of_memory (sizeof (ObjectMonitor[_BLOCKSIZE]), OOM_MALLOC_ERROR,
1022 "Allocate ObjectMonitors");
1022 } 1023 }
1023 1024
1024 // Format the block. 1025 // Format the block.
1025 // initialize the linked list, each monitor points to its next 1026 // initialize the linked list, each monitor points to its next
1026 // forming the single linked free list, the very first monitor 1027 // forming the single linked free list, the very first monitor