50
51 private:
52 static ZHeap* _heap;
53
54 ZWorkers _workers;
55 ZObjectAllocator _object_allocator;
56 ZPageAllocator _page_allocator;
57 ZPageTable _pagetable;
58 ZMark _mark;
59 ZReferenceProcessor _reference_processor;
60 ZWeakRootsProcessor _weak_roots_processor;
61 ZRelocate _relocate;
62 ZRelocationSet _relocation_set;
63 ZUnload _unload;
64 ZServiceability _serviceability;
65
66 size_t heap_min_size() const;
67 size_t heap_max_size() const;
68 size_t heap_max_reserve_size() const;
69
70 void out_of_memory();
71 void flip_views();
72 void fixup_partial_loads();
73
74 public:
75 static ZHeap* heap();
76
77 ZHeap();
78
79 bool is_initialized() const;
80
81 // Heap metrics
82 size_t min_capacity() const;
83 size_t max_capacity() const;
84 size_t current_max_capacity() const;
85 size_t capacity() const;
86 size_t max_reserve() const;
87 size_t used_high() const;
88 size_t used_low() const;
89 size_t used() const;
90 size_t allocated() const;
91 size_t reclaimed() const;
|
50
51 private:
52 static ZHeap* _heap;
53
54 ZWorkers _workers;
55 ZObjectAllocator _object_allocator;
56 ZPageAllocator _page_allocator;
57 ZPageTable _pagetable;
58 ZMark _mark;
59 ZReferenceProcessor _reference_processor;
60 ZWeakRootsProcessor _weak_roots_processor;
61 ZRelocate _relocate;
62 ZRelocationSet _relocation_set;
63 ZUnload _unload;
64 ZServiceability _serviceability;
65
66 size_t heap_min_size() const;
67 size_t heap_max_size() const;
68 size_t heap_max_reserve_size() const;
69
70 void before_flip();
71 void after_flip();
72
73 void flip_to_marked();
74 void flip_to_remapped();
75
76 void out_of_memory();
77 void fixup_partial_loads();
78
79 public:
80 static ZHeap* heap();
81
82 ZHeap();
83
84 bool is_initialized() const;
85
86 // Heap metrics
87 size_t min_capacity() const;
88 size_t max_capacity() const;
89 size_t current_max_capacity() const;
90 size_t capacity() const;
91 size_t max_reserve() const;
92 size_t used_high() const;
93 size_t used_low() const;
94 size_t used() const;
95 size_t allocated() const;
96 size_t reclaimed() const;
|