src/share/vm/runtime/synchronizer.cpp

changeset 4993
746b070f5022
parent 4967
5a9fa2ba85f0
child 5237
f2110083203d
equal deleted inserted replaced
4992:ed5a590835a4 4993: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

mercurial