changeset 8672 | 26a427ab6f32 |
parent 8668 | 32feee9b0d25 |
child 8679 | 17a8cfc08f1d |
--- a/hotspot/src/share/vm/code/nmethod.cpp Sun Mar 06 22:09:23 2011 -0800 +++ b/hotspot/src/share/vm/code/nmethod.cpp Wed Mar 09 09:15:16 2011 -0800 @@ -762,7 +762,7 @@ void* nmethod::operator new(size_t size, int nmethod_size) { // Always leave some room in the CodeCache for I2C/C2I adapters - if (CodeCache::unallocated_capacity() < CodeCacheMinimumFreeSpace) return NULL; + if (CodeCache::largest_free_block() < CodeCacheMinimumFreeSpace) return NULL; return CodeCache::allocate(nmethod_size); }