--- old/src/share/vm/code/codeBlob.cpp 2014-08-28 12:47:06.755044763 +0200 +++ new/src/share/vm/code/codeBlob.cpp 2014-08-28 12:47:06.403044780 +0200 @@ -229,14 +229,11 @@ return blob; } - void* BufferBlob::operator new(size_t s, unsigned size, bool is_critical) throw() { - void* p = CodeCache::allocate(size, is_critical); - return p; + return CodeCache::allocate(size, CodeBlobType::NonMethod, is_critical); } - -void BufferBlob::free( BufferBlob *blob ) { +void BufferBlob::free(BufferBlob *blob) { ThreadInVMfromUnknown __tiv; // get to VM state in case we block on CodeCache_lock { MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag); @@ -298,7 +295,6 @@ return blob; } - //---------------------------------------------------------------------------------------------------- // Implementation of RuntimeStub @@ -339,14 +335,14 @@ void* RuntimeStub::operator new(size_t s, unsigned size) throw() { - void* p = CodeCache::allocate(size, true); + void* p = CodeCache::allocate(size, CodeBlobType::NonMethod, true); if (!p) fatal("Initial size of CodeCache is too small"); return p; } // operator new shared by all singletons: void* SingletonBlob::operator new(size_t s, unsigned size) throw() { - void* p = CodeCache::allocate(size, true); + void* p = CodeCache::allocate(size, CodeBlobType::NonMethod, true); if (!p) fatal("Initial size of CodeCache is too small"); return p; }