• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Export Word
    • Attachments
    • Page Information

    Loading...
  1. Dashboard
  2. HotSpot
  3. Main
  4. Runtime
  5. Application Class Data Sharing - AppCDS
  6. CDS Archived Heap Improvements

Page History

Versions Compared

Old Version 4

changes.mady.by.user Ioi Lam

Saved on Oct 28, 2020

compared with

New Version 5

changes.mady.by.user Ioi Lam

Saved on Oct 28, 2020

  • Previous Change: Difference between versions 3 and 4
  • Next Change: Difference between versions 5 and 6
  • View Page History

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

With the Root List, it should be fairly easy to support Archived Heap for SerialGC and ParallelGC:. See JDK-8234679 - Support CDS shared heap in non-G1 garbage collectors.

  • At VM bootstrap, reserve enough space in the old generation
  • Copy objects in the Open Region and Closed Region into the old generation
    • Relocation may be necessary, since the Open/Closed regions assume that they are mapped to a pre-determined address, which may be different than the location of the old generation
    • There's already code for doing this kind of relocation (see HeapShared::patch_archived_heap_embedded_pointers)
    • The Open/Closed regions may be divided into at most 4 blocks with gaps in between. The easiest way to handle the gaps is to fill them with a dummy array.
  • Even with the copying/patching, the start up time should still be much faster than running without the Archived Heap. Without the Archived Heap, we need to create many expensive data structures (such as the module graph) from scratch, which is very time consuming.
    • G1 with Archived Heap = 32ms
    • G1 without Archived Heap = 57ms
    • Copying/patching = less than 1ms.

Support Uncompressed Oops for the Archived Heap

In JDK 15, the class metadata references archived heap objects using narrowOop (e.g. Klass::_archived_mirror). With the Root List, these references are changed to be integer indices. As a result, most of the Archive Heap code should be agnostic to oop encoding. This will make it easier to support uncompressed oops in Archive Heap.


Overview
Content Tools
ThemeBuilder

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.23
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 324, "requestCorrelationId": "753170bbf5bdd902"}