Skip to content
Snippets Groups Projects

Draft: Allocate small pinned allocations directly in the non-moving heap

Open Ben Gamari requested to merge wip/gc/nonmoving-pinned into master

Previously allocatePinned would allocate small pinned things into a per-capability accumulator block. While simple, this can result in bad internal fragmentation as allocations become unreachable since the block cannot be freed until all objects it backs die.

When the non-moving collector is in use we can do better by allocating pinned objects directly into the non-moving heap, avoiding much of the fragmentation potential of the old approach.

Edited by Ben Gamari

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading