8244660: Code cache sweeper heuristics is broken

Reviewed-by: thartmann, rehn
This commit is contained in:
Nils Eliasson 2020-06-03 15:26:18 +02:00
parent 06b49fa3f7
commit 99d6bea20d
11 changed files with 76 additions and 130 deletions

View file

@ -484,7 +484,7 @@ CodeBlob* CodeCache::next_blob(CodeHeap* heap, CodeBlob* cb) {
*/
CodeBlob* CodeCache::allocate(int size, int code_blob_type, int orig_code_blob_type) {
// Possibly wakes up the sweeper thread.
NMethodSweeper::notify(code_blob_type);
NMethodSweeper::report_allocation(code_blob_type);
assert_locked_or_safepoint(CodeCache_lock);
assert(size > 0, "Code cache allocation request must be > 0 but is %d", size);
if (size <= 0) {