hotspot/src/share/vm/runtime/synchronizer.cpp
changeset 46618 d503911aa948
parent 46587 6c97f34cb194
child 46619 a3919f5e8d2b
equal deleted inserted replaced
46617:0330c5fc49ce 46618:d503911aa948
  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.