mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-12 00:30:20 +02:00
We identify empty blocks lazily now
This commit is contained in:
parent
bc73c5ad02
commit
808d365f4b
2 changed files with 1 additions and 2 deletions
|
@ -155,7 +155,6 @@ large majority of use cases.
|
|||
|
||||
- [ ] Immix-style opportunistic evacuation
|
||||
- [ ] Overflow allocation
|
||||
- [ ] Lazy identification of empty blocks
|
||||
- [ ] Generational GC via sticky mark bits
|
||||
- [ ] Generational GC with semi-space nursery
|
||||
- [ ] Concurrent marking with SATB barrier
|
||||
|
|
|
@ -934,7 +934,7 @@ static size_t next_hole(struct mutator *mut) {
|
|||
size_t granules = next_hole_in_block(mut);
|
||||
if (granules) {
|
||||
// If the hole spans only part of a block, give it to the mutator.
|
||||
if (granules <= GRANULES_PER_BLOCK)
|
||||
if (granules < GRANULES_PER_BLOCK)
|
||||
return granules;
|
||||
// Sweeping found a completely empty block. If we have pending
|
||||
// pages to release to the OS, we should unmap this block.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue