28 #include "gc/z/zAllocationFlags.hpp"
29 #include "gc/z/zArray.hpp"
30 #include "gc/z/zInitialize.hpp"
31 #include "gc/z/zList.hpp"
32 #include "gc/z/zLock.hpp"
33 #include "gc/z/zMark.hpp"
34 #include "gc/z/zObjectAllocator.hpp"
35 #include "gc/z/zPage.hpp"
36 #include "gc/z/zPageAllocator.hpp"
37 #include "gc/z/zPageTable.hpp"
38 #include "gc/z/zReferenceProcessor.hpp"
39 #include "gc/z/zRelocate.hpp"
40 #include "gc/z/zRelocationSet.hpp"
41 #include "gc/z/zRelocationSetSelector.hpp"
42 #include "gc/z/zRootsIterator.hpp"
43 #include "gc/z/zServiceability.hpp"
44 #include "gc/z/zWorkers.hpp"
45 #include "memory/allocation.hpp"
46
47 class ZHeap VALUE_OBJ_CLASS_SPEC {
48 private:
49 static ZHeap* _heap;
50
51 ZInitialize _initialize;
52 ZWorkers _workers;
53 ZObjectAllocator _object_allocator;
54 ZPageAllocator _page_allocator;
55 ZPageTable _pagetable;
56 ZMark _mark;
57 ZReferenceProcessor _reference_processor;
58 ZRelocate _relocate;
59 ZRelocationSet _relocation_set;
60 ZServiceability _serviceability;
61
62 size_t heap_min_size() const;
63 size_t heap_max_size() const;
64 size_t heap_max_reserve_size() const;
65
66 void out_of_memory();
67 void flip_views();
|
28 #include "gc/z/zAllocationFlags.hpp"
29 #include "gc/z/zArray.hpp"
30 #include "gc/z/zInitialize.hpp"
31 #include "gc/z/zList.hpp"
32 #include "gc/z/zLock.hpp"
33 #include "gc/z/zMark.hpp"
34 #include "gc/z/zObjectAllocator.hpp"
35 #include "gc/z/zPage.hpp"
36 #include "gc/z/zPageAllocator.hpp"
37 #include "gc/z/zPageTable.hpp"
38 #include "gc/z/zReferenceProcessor.hpp"
39 #include "gc/z/zRelocate.hpp"
40 #include "gc/z/zRelocationSet.hpp"
41 #include "gc/z/zRelocationSetSelector.hpp"
42 #include "gc/z/zRootsIterator.hpp"
43 #include "gc/z/zServiceability.hpp"
44 #include "gc/z/zWorkers.hpp"
45 #include "memory/allocation.hpp"
46
47 class ZHeap VALUE_OBJ_CLASS_SPEC {
48 friend class VMStructs;
49
50 private:
51 static ZHeap* _heap;
52
53 ZInitialize _initialize;
54 ZWorkers _workers;
55 ZObjectAllocator _object_allocator;
56 ZPageAllocator _page_allocator;
57 ZPageTable _pagetable;
58 ZMark _mark;
59 ZReferenceProcessor _reference_processor;
60 ZRelocate _relocate;
61 ZRelocationSet _relocation_set;
62 ZServiceability _serviceability;
63
64 size_t heap_min_size() const;
65 size_t heap_max_size() const;
66 size_t heap_max_reserve_size() const;
67
68 void out_of_memory();
69 void flip_views();
|