Skip to content

Conversation

graalvmbot
Copy link
Collaborator

  • Use a contiguous address space for the metaspace (between the null regions and the image heap, see class ImageHeapProvider).
  • Support heap dumping when a metaspace is present.
  • Various changes and cleanups for layered images
    • Removed unnecessary alignment at the start of extension layers (saves up to 512 kb in binary size). For basic-tests/application-layer-test, this decreases the binary size of the application layer by 9%.
    • Changed Heap.getImageHeapOffsetInAddressSpace() so that it always returns the offset to the start of the image heap (instead of an offset to the current layer's image heap).
    • Moved LinuxImageHeapProvider.getLayeredImageHeapAddressSpaceSize() to AbstractImageHeapProvider.getImageHeapAddressSpaceSize() so that it can be used on all platforms.
    • After building a shared layer, we now store the end offset of the image heap (instead of the image heap size), which simplifies a few things.
    • Moved some fields from ClassRegistries to a new class named TypeIDs, so that the maximum type id at runtime can always be queried.
  • Simplified some heap dumping logic.
  • More assertions that check if memory is properly aligned.
  • Various other cleanups and more documentation.

Support heap dumping if a metaspace is present.
Various changes and cleanups for layered images.
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 18, 2025
@graalvmbot graalvmbot merged commit 7171a11 into master Aug 19, 2025
12 of 13 checks passed
@graalvmbot graalvmbot deleted the chaeubl/GR-60085 branch August 19, 2025 06:52
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