--- old/src/share/vm/code/codeBlob.cpp 2014-09-04 12:25:40.746499690 +0200 +++ new/src/share/vm/code/codeBlob.cpp 2014-09-04 12:25:40.538499699 +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 blob->flush(); { @@ -299,7 +296,6 @@ return blob; } - //---------------------------------------------------------------------------------------------------- // Implementation of RuntimeStub @@ -340,14 +336,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; }