mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +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
|
@ -1018,7 +1018,8 @@ ObjectMonitor * ATTR ObjectSynchronizer::omAlloc (Thread * Self) {
|
|||
// We might be able to induce a STW safepoint and scavenge enough
|
||||
// objectMonitors to permit progress.
|
||||
if (temp == NULL) {
|
||||
vm_exit_out_of_memory (sizeof (ObjectMonitor[_BLOCKSIZE]), "Allocate ObjectMonitors") ;
|
||||
vm_exit_out_of_memory (sizeof (ObjectMonitor[_BLOCKSIZE]), OOM_MALLOC_ERROR,
|
||||
"Allocate ObjectMonitors");
|
||||
}
|
||||
|
||||
// Format the block.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue