< prev index next >

src/hotspot/share/memory/metaspaceShared.hpp

Print this page

        

@@ -182,10 +182,11 @@
   static size_t  _i2i_entry_code_buffers_size;
   static size_t  _core_spaces_size;
   static void* _shared_metaspace_static_top;
   static intx _relocation_delta;
   static char* _requested_base_address;
+  static bool _use_optimized_module_handling;
  public:
   enum {
     // core archive spaces
     mc = 0,  // miscellaneous code for method trampolines
     rw = 1,  // read-write shared space in the heap

@@ -370,10 +371,17 @@
   }
 
   static void write_core_archive_regions(FileMapInfo* mapinfo,
                                          GrowableArray<ArchiveHeapOopmapInfo>* closed_oopmaps,
                                          GrowableArray<ArchiveHeapOopmapInfo>* open_oopmaps);
+
+  // Can we skip some expensive operations related to modules?
+  static bool use_optimized_module_handling();
+  static void disable_optimized_module_handling() {
+    _use_optimized_module_handling = false;
+  }
+
 private:
 #if INCLUDE_CDS
   static void write_region(FileMapInfo* mapinfo, int region_idx, DumpRegion* dump_region,
                            bool read_only,  bool allow_exec);
 #endif
< prev index next >