Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

When planning compaction in CompactingOldGen, objects are not moved across chunks that are swept rather than compacted (because the chunk contains pinned objects). Therefore, memory that could be used for compacting in a chunk before a swept chunk is forfeited. Also, with two or more swept chunks in a row, only the memory at the end of the last chunk is used for compaction. All this keeps the objects in the same order across all chunks, but that is no longer necessary.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 13, 2025
@graalvmbot graalvmbot merged commit ecacee0 into master Nov 13, 2025
13 checks passed
@graalvmbot graalvmbot deleted the ph/GR-54021 branch November 13, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants