comparison src/share/vm/runtime/sharedRuntime.cpp @ 12294:891687731b59

7009641: Don't fail VM when CodeCache is full Summary: Allocation in the code cache returns NULL instead of failing the entire VM Reviewed-by: kvn, iveresov
author anoll
date Tue, 24 Sep 2013 15:56:25 +0200
parents f98f5d48f511
children a5ac0873476c
comparison
equal deleted inserted replaced
12274:8a6a85321d3a 12294:891687731b59
1504 inline_cache->is_optimized(), 1504 inline_cache->is_optimized(),
1505 false, 1505 false,
1506 info, CHECK_(methodHandle())); 1506 info, CHECK_(methodHandle()));
1507 inline_cache->set_to_monomorphic(info); 1507 inline_cache->set_to_monomorphic(info);
1508 } else if (!inline_cache->is_megamorphic() && !inline_cache->is_clean()) { 1508 } else if (!inline_cache->is_megamorphic() && !inline_cache->is_clean()) {
1509 // Change to megamorphic 1509 // Potential change to megamorphic
1510 inline_cache->set_to_megamorphic(&call_info, bc, CHECK_(methodHandle())); 1510 bool successful = inline_cache->set_to_megamorphic(&call_info, bc, CHECK_(methodHandle()));
1511 if (!successful) {
1512 inline_cache->set_to_clean();
1513 }
1511 } else { 1514 } else {
1512 // Either clean or megamorphic 1515 // Either clean or megamorphic
1513 } 1516 }
1514 } 1517 }
1515 } // Release CompiledIC_lock 1518 } // Release CompiledIC_lock