equal
deleted
inserted
replaced
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; |