equal
deleted
inserted
replaced
1184 PaddedEnd<ObjectMonitor> * temp; |
1184 PaddedEnd<ObjectMonitor> * temp; |
1185 size_t aligned_size = neededsize + (DEFAULT_CACHE_LINE_SIZE - 1); |
1185 size_t aligned_size = neededsize + (DEFAULT_CACHE_LINE_SIZE - 1); |
1186 void* real_malloc_addr = (void *)NEW_C_HEAP_ARRAY(char, aligned_size, |
1186 void* real_malloc_addr = (void *)NEW_C_HEAP_ARRAY(char, aligned_size, |
1187 mtInternal); |
1187 mtInternal); |
1188 temp = (PaddedEnd<ObjectMonitor> *) |
1188 temp = (PaddedEnd<ObjectMonitor> *) |
1189 align_size_up((intptr_t)real_malloc_addr, |
1189 align_ptr_up(real_malloc_addr, |
1190 DEFAULT_CACHE_LINE_SIZE); |
1190 DEFAULT_CACHE_LINE_SIZE); |
1191 |
1191 |
1192 // NOTE: (almost) no way to recover if allocation failed. |
1192 // NOTE: (almost) no way to recover if allocation failed. |
1193 // We might be able to induce a STW safepoint and scavenge enough |
1193 // We might be able to induce a STW safepoint and scavenge enough |
1194 // objectMonitors to permit progress. |
1194 // objectMonitors to permit progress. |