< prev index next >
src/hotspot/share/gc/shared/spaceDecorator.hpp
Print this page
rev 56811 : [mq]: 8189737-heapregion-remove-space-inheritance
@@ -23,12 +23,12 @@
*/
#ifndef SHARE_GC_SHARED_SPACEDECORATOR_HPP
#define SHARE_GC_SHARED_SPACEDECORATOR_HPP
-#include "gc/parallel/mutableSpace.hpp"
-#include "gc/shared/space.hpp"
+#include "memory/allocation.hpp"
+#include "memory/memRegion.hpp"
#include "utilities/globalDefinitions.hpp"
class SpaceDecorator: public AllStatic {
public:
// Initialization flags.
@@ -118,19 +118,20 @@
// size of the generation.
static void mangle_region(MemRegion mr) PRODUCT_RETURN;
};
class ContiguousSpace;
+class MutableSpace;
// For use with GenCollectedHeap's
class GenSpaceMangler: public SpaceMangler {
ContiguousSpace* _sp;
ContiguousSpace* sp() { return _sp; }
- HeapWord* top() const { return _sp->top(); }
- HeapWord* end() const { return _sp->end(); }
+ HeapWord* top() const;
+ HeapWord* end() const;
public:
GenSpaceMangler(ContiguousSpace* sp) : SpaceMangler(), _sp(sp) {}
};
@@ -138,12 +139,12 @@
class MutableSpaceMangler: public SpaceMangler {
MutableSpace* _sp;
MutableSpace* sp() { return _sp; }
- HeapWord* top() const { return _sp->top(); }
- HeapWord* end() const { return _sp->end(); }
+ HeapWord* top() const;
+ HeapWord* end() const;
public:
MutableSpaceMangler(MutableSpace* sp) : SpaceMangler(), _sp(sp) {}
};
< prev index next >