Mercurial > hg > truffle
diff src/share/vm/code/codeBlob.cpp @ 10114:a7fb14888912
8006952: Slow VM due to excessive code cache freelist iteration
Summary: Remove continous free block requirement
Reviewed-by: kvn
author | neliasso |
---|---|
date | Thu, 11 Apr 2013 13:57:44 +0200 |
parents | a5de0cc2f91c |
children | 836a62f43af9 9758d9f36299 |
line wrap: on
line diff
--- a/src/share/vm/code/codeBlob.cpp Tue Apr 16 10:04:01 2013 -0700 +++ b/src/share/vm/code/codeBlob.cpp Thu Apr 11 13:57:44 2013 +0200 @@ -348,14 +348,14 @@ void* RuntimeStub::operator new(size_t s, unsigned size) { - void* p = CodeCache::allocate(size); + void* p = CodeCache::allocate(size, 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) { - void* p = CodeCache::allocate(size); + void* p = CodeCache::allocate(size, true); if (!p) fatal("Initial size of CodeCache is too small"); return p; }