src/share/vm/gc_implementation/g1/g1RegionToSpaceMapper.hpp

changeset 7257
e7d0505c8a30
parent 7053
7b2fc3129653
child 7781
33e421924c67
     1.1 --- a/src/share/vm/gc_implementation/g1/g1RegionToSpaceMapper.hpp	Fri Oct 10 15:45:45 2014 +0200
     1.2 +++ b/src/share/vm/gc_implementation/g1/g1RegionToSpaceMapper.hpp	Fri Oct 10 15:51:58 2014 +0200
     1.3 @@ -33,7 +33,9 @@
     1.4   public:
     1.5    // Fired after commit of the memory, i.e. the memory this listener is registered
     1.6    // for can be accessed.
     1.7 -  virtual void on_commit(uint start_idx, size_t num_regions) = 0;
     1.8 +  // Zero_filled indicates that the memory can be considered as filled with zero bytes
     1.9 +  // when called.
    1.10 +  virtual void on_commit(uint start_idx, size_t num_regions, bool zero_filled) = 0;
    1.11  };
    1.12  
    1.13  // Maps region based commit/uncommit requests to the underlying page sized virtual
    1.14 @@ -51,7 +53,7 @@
    1.15  
    1.16    G1RegionToSpaceMapper(ReservedSpace rs, size_t commit_granularity, size_t region_granularity, MemoryType type);
    1.17  
    1.18 -  void fire_on_commit(uint start_idx, size_t num_regions);
    1.19 +  void fire_on_commit(uint start_idx, size_t num_regions, bool zero_filled);
    1.20   public:
    1.21    MemRegion reserved() { return _storage.reserved(); }
    1.22  

mercurial