hotspot/src/share/vm/code/codeBlob.cpp
changeset 36074 11263906664c
parent 35542 9dccb7f9f656
child 37248 11a660dbbb8e
equal deleted inserted replaced
36073:1c0381cc1e1d 36074:11263906664c
   289   size = align_code_offset(size);
   289   size = align_code_offset(size);
   290   size += round_to(buffer_size, oopSize);
   290   size += round_to(buffer_size, oopSize);
   291   {
   291   {
   292     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
   292     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
   293     blob = new (size) MethodHandlesAdapterBlob(size);
   293     blob = new (size) MethodHandlesAdapterBlob(size);
       
   294     if (blob == NULL) {
       
   295       vm_exit_out_of_memory(size, OOM_MALLOC_ERROR, "CodeCache: no room for method handle adapter blob");
       
   296     }
   294   }
   297   }
   295   // Track memory usage statistic after releasing CodeCache_lock
   298   // Track memory usage statistic after releasing CodeCache_lock
   296   MemoryService::track_code_cache_memory_usage();
   299   MemoryService::track_code_cache_memory_usage();
   297 
   300 
   298   return blob;
   301   return blob;