Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
10113:4b2eebe03f93 | 10114:a7fb14888912 |
---|---|
346 return stub; | 346 return stub; |
347 } | 347 } |
348 | 348 |
349 | 349 |
350 void* RuntimeStub::operator new(size_t s, unsigned size) { | 350 void* RuntimeStub::operator new(size_t s, unsigned size) { |
351 void* p = CodeCache::allocate(size); | 351 void* p = CodeCache::allocate(size, true); |
352 if (!p) fatal("Initial size of CodeCache is too small"); | 352 if (!p) fatal("Initial size of CodeCache is too small"); |
353 return p; | 353 return p; |
354 } | 354 } |
355 | 355 |
356 // operator new shared by all singletons: | 356 // operator new shared by all singletons: |
357 void* SingletonBlob::operator new(size_t s, unsigned size) { | 357 void* SingletonBlob::operator new(size_t s, unsigned size) { |
358 void* p = CodeCache::allocate(size); | 358 void* p = CodeCache::allocate(size, true); |
359 if (!p) fatal("Initial size of CodeCache is too small"); | 359 if (!p) fatal("Initial size of CodeCache is too small"); |
360 return p; | 360 return p; |
361 } | 361 } |
362 | 362 |
363 | 363 |