mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8244660: Code cache sweeper heuristics is broken
Reviewed-by: thartmann, rehn
This commit is contained in:
parent
06b49fa3f7
commit
99d6bea20d
11 changed files with 76 additions and 130 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue