mirror of
https://github.com/darlinghq/darling-openjdk.git
synced 2025-02-17 06:28:31 +00:00
8238356: CodeHeap::blob_count() overestimates the number of blobs
Decremented _blob_count on addition to the free list Reviewed-by: lucy, shade, thartmann
This commit is contained in:
parent
57ceb1bc5e
commit
b2762836fc
@ -611,6 +611,9 @@ void CodeHeap::add_to_freelist(HeapBlock* a) {
|
||||
size_t bseg = segment_for(b);
|
||||
_freelist_length++;
|
||||
|
||||
_blob_count--;
|
||||
assert(_blob_count >= 0, "sanity");
|
||||
|
||||
assert(b != _freelist, "cannot be removed twice");
|
||||
|
||||
// Mark as free and update free space count
|
||||
|
Loading…
x
Reference in New Issue
Block a user