Print this page
8236073: G1: Use SoftMaxHeapSize to guide GC heuristics

@@ -95,10 +95,13 @@
                                                    size_t actual_size,
                                                    size_t page_size,
                                                    size_t region_granularity,
                                                    size_t byte_translation_factor,
                                                    MemoryType type);
+
+  // If the mapper can commit/uncommit region parallelly
+  virtual bool can_parallelly_commit_and_uncommit() const = 0;
 };
 
 // G1RegionToSpaceMapper implementation where
 // part of space is mapped to dram and part to nv-dimm
 class G1RegionToHeteroSpaceMapper : public G1RegionToSpaceMapper {

@@ -118,7 +121,9 @@
   uint num_committed_dram() const;
   uint num_committed_nvdimm() const;
 
   virtual void commit_regions(uint start_idx, size_t num_regions = 1, WorkGang* pretouch_workers = NULL);
   virtual void uncommit_regions(uint start_idx, size_t num_regions = 1);
+
+  virtual bool can_parallelly_commit_and_uncommit() const;
 };
 #endif // SHARE_GC_G1_G1REGIONTOSPACEMAPPER_HPP