< prev index next >

src/hotspot/share/gc/g1/g1RegionToSpaceMapper.hpp

Print this page
rev 56448 : imported patch 8220310.mut.0
rev 56449 : imported patch 8220310.mut.1_thomas
rev 56451 : imported patch 8220310.mut.1-3_kim
rev 56454 : [mq]: 8220310.mut.2-evensplit


   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_GC_G1_G1REGIONTOSPACEMAPPER_HPP
  26 #define SHARE_GC_G1_G1REGIONTOSPACEMAPPER_HPP
  27 

  28 #include "gc/g1/g1PageBasedVirtualSpace.hpp"
  29 #include "memory/allocation.hpp"
  30 #include "utilities/debug.hpp"
  31 
  32 class WorkGang;
  33 
  34 class G1MappingChangedListener {
  35  public:
  36   // Fired after commit of the memory, i.e. the memory this listener is registered
  37   // for can be accessed.
  38   // Zero_filled indicates that the memory can be considered as filled with zero bytes
  39   // when called.
  40   virtual void on_commit(uint start_idx, size_t num_regions, bool zero_filled) = 0;
  41 };
  42 
  43 // Maps region based commit/uncommit requests to the underlying page sized virtual
  44 // space.
  45 class G1RegionToSpaceMapper : public CHeapObj<mtGC> {
  46  private:
  47   G1MappingChangedListener* _listener;




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_GC_G1_G1REGIONTOSPACEMAPPER_HPP
  26 #define SHARE_GC_G1_G1REGIONTOSPACEMAPPER_HPP
  27 
  28 #include "gc/g1/g1MemoryNodeManager.hpp"
  29 #include "gc/g1/g1PageBasedVirtualSpace.hpp"
  30 #include "memory/allocation.hpp"
  31 #include "utilities/debug.hpp"
  32 
  33 class WorkGang;
  34 
  35 class G1MappingChangedListener {
  36  public:
  37   // Fired after commit of the memory, i.e. the memory this listener is registered
  38   // for can be accessed.
  39   // Zero_filled indicates that the memory can be considered as filled with zero bytes
  40   // when called.
  41   virtual void on_commit(uint start_idx, size_t num_regions, bool zero_filled) = 0;
  42 };
  43 
  44 // Maps region based commit/uncommit requests to the underlying page sized virtual
  45 // space.
  46 class G1RegionToSpaceMapper : public CHeapObj<mtGC> {
  47  private:
  48   G1MappingChangedListener* _listener;


< prev index next >