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 |