< prev index next >
src/hotspot/share/gc/g1/g1MemoryPool.hpp
Print this page
rev 48034 : 8191564: Refactor GC related servicability code into GC specific subclasses
Reviewed-by: ehelin, eosterlund
*** 1,7 ****
/*
! * Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 20,38 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
! #ifndef SHARE_VM_SERVICES_G1MEMORYPOOL_HPP
! #define SHARE_VM_SERVICES_G1MEMORYPOOL_HPP
- #include "utilities/macros.hpp"
- #if INCLUDE_ALL_GCS
#include "gc/g1/g1MonitoringSupport.hpp"
#include "services/memoryPool.hpp"
#include "services/memoryUsage.hpp"
- #endif // INCLUDE_ALL_GCS
// This file contains the three classes that represent the memory
// pools of the G1 spaces: G1EdenPool, G1SurvivorPool, and
// G1OldGenPool. In G1, unlike our other GCs, we do not have a
// physical space for each of those spaces. Instead, we allocate
--- 20,35 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
! #ifndef SHARE_VM_GC_G1_G1MEMORYPOOL_HPP
! #define SHARE_VM_GC_G1_G1MEMORYPOOL_HPP
#include "gc/g1/g1MonitoringSupport.hpp"
#include "services/memoryPool.hpp"
#include "services/memoryUsage.hpp"
// This file contains the three classes that represent the memory
// pools of the G1 spaces: G1EdenPool, G1SurvivorPool, and
// G1OldGenPool. In G1, unlike our other GCs, we do not have a
// physical space for each of those spaces. Instead, we allocate
*** 48,57 ****
--- 45,56 ----
//
// See comments in g1MonitoringSupport.hpp for additional details
// on this model.
//
+ class G1CollectedHeap;
+
// This class is shared by the three G1 memory pool classes
// (G1EdenPool, G1SurvivorPool, G1OldGenPool).
class G1MemoryPoolSuper : public CollectedMemoryPool {
protected:
const static size_t _undefined_max = (size_t) -1;
*** 105,110 ****
return _g1mm->old_gen_max();
}
MemoryUsage get_memory_usage();
};
! #endif // SHARE_VM_SERVICES_G1MEMORYPOOL_HPP
--- 104,109 ----
return _g1mm->old_gen_max();
}
MemoryUsage get_memory_usage();
};
! #endif // SHARE_VM_GC_G1_G1MEMORYPOOL_HPP
< prev index next >