< prev index next >

src/hotspot/share/memory/heapShared.cpp

Print this page
rev 54349 : 8221701: Archive constant BaseLocales
Reviewed-by: TBD


  52 bool HeapShared::_open_archive_heap_region_mapped = false;
  53 bool HeapShared::_archive_heap_region_fixed = false;
  54 
  55 address   HeapShared::_narrow_oop_base;
  56 int       HeapShared::_narrow_oop_shift;
  57 
  58 //
  59 // If you add new entries to the following tables, you should know what you're doing!
  60 //
  61 
  62 // Entry fields for shareable subgraphs archived in the closed archive heap
  63 // region. Warning: Objects in the subgraphs should not have reference fields
  64 // assigned at runtime.
  65 static ArchivableStaticFieldInfo closed_archive_subgraph_entry_fields[] = {
  66   {"java/lang/Integer$IntegerCache",           "archivedCache"},
  67   {"java/lang/Long$LongCache",                 "archivedCache"},
  68   {"java/lang/Byte$ByteCache",                 "archivedCache"},
  69   {"java/lang/Short$ShortCache",               "archivedCache"},
  70   {"java/lang/Character$CharacterCache",       "archivedCache"},
  71   {"java/util/jar/Attributes$Name",            "KNOWN_NAMES"},

  72 };
  73 // Entry fields for subgraphs archived in the open archive heap region.
  74 static ArchivableStaticFieldInfo open_archive_subgraph_entry_fields[] = {
  75   {"jdk/internal/module/ArchivedModuleGraph",  "archivedModuleGraph"},
  76   {"java/util/ImmutableCollections$ListN",     "EMPTY_LIST"},
  77   {"java/util/ImmutableCollections$MapN",      "EMPTY_MAP"},
  78   {"java/util/ImmutableCollections$SetN",      "EMPTY_SET"},
  79   {"java/lang/module/Configuration",           "EMPTY_CONFIGURATION"},
  80 };
  81 
  82 const static int num_closed_archive_subgraph_entry_fields =
  83   sizeof(closed_archive_subgraph_entry_fields) / sizeof(ArchivableStaticFieldInfo);
  84 const static int num_open_archive_subgraph_entry_fields =
  85   sizeof(open_archive_subgraph_entry_fields) / sizeof(ArchivableStaticFieldInfo);
  86 
  87 ////////////////////////////////////////////////////////////////
  88 //
  89 // Java heap object archiving support
  90 //
  91 ////////////////////////////////////////////////////////////////




  52 bool HeapShared::_open_archive_heap_region_mapped = false;
  53 bool HeapShared::_archive_heap_region_fixed = false;
  54 
  55 address   HeapShared::_narrow_oop_base;
  56 int       HeapShared::_narrow_oop_shift;
  57 
  58 //
  59 // If you add new entries to the following tables, you should know what you're doing!
  60 //
  61 
  62 // Entry fields for shareable subgraphs archived in the closed archive heap
  63 // region. Warning: Objects in the subgraphs should not have reference fields
  64 // assigned at runtime.
  65 static ArchivableStaticFieldInfo closed_archive_subgraph_entry_fields[] = {
  66   {"java/lang/Integer$IntegerCache",           "archivedCache"},
  67   {"java/lang/Long$LongCache",                 "archivedCache"},
  68   {"java/lang/Byte$ByteCache",                 "archivedCache"},
  69   {"java/lang/Short$ShortCache",               "archivedCache"},
  70   {"java/lang/Character$CharacterCache",       "archivedCache"},
  71   {"java/util/jar/Attributes$Name",            "KNOWN_NAMES"},
  72   {"sun/util/locale/BaseLocale",               "constantBaseLocales"},
  73 };
  74 // Entry fields for subgraphs archived in the open archive heap region.
  75 static ArchivableStaticFieldInfo open_archive_subgraph_entry_fields[] = {
  76   {"jdk/internal/module/ArchivedModuleGraph",  "archivedModuleGraph"},
  77   {"java/util/ImmutableCollections$ListN",     "EMPTY_LIST"},
  78   {"java/util/ImmutableCollections$MapN",      "EMPTY_MAP"},
  79   {"java/util/ImmutableCollections$SetN",      "EMPTY_SET"},
  80   {"java/lang/module/Configuration",           "EMPTY_CONFIGURATION"},
  81 };
  82 
  83 const static int num_closed_archive_subgraph_entry_fields =
  84   sizeof(closed_archive_subgraph_entry_fields) / sizeof(ArchivableStaticFieldInfo);
  85 const static int num_open_archive_subgraph_entry_fields =
  86   sizeof(open_archive_subgraph_entry_fields) / sizeof(ArchivableStaticFieldInfo);
  87 
  88 ////////////////////////////////////////////////////////////////
  89 //
  90 // Java heap object archiving support
  91 //
  92 ////////////////////////////////////////////////////////////////


< prev index next >