88 size_t used_low() const; 89 size_t used() const; 90 size_t unused() const; 91 size_t allocated() const; 92 size_t reclaimed() const; 93 94 size_t tlab_capacity() const; 95 size_t tlab_used() const; 96 size_t max_tlab_size() const; 97 size_t unsafe_max_tlab_alloc() const; 98 99 bool is_in(uintptr_t addr) const; 100 uint32_t hash_oop(uintptr_t addr) const; 101 102 // Workers 103 uint nconcurrent_worker_threads() const; 104 uint nconcurrent_no_boost_worker_threads() const; 105 void set_boost_worker_threads(bool boost); 106 void worker_threads_do(ThreadClosure* tc) const; 107 void print_worker_threads_on(outputStream* st) const; 108 109 // Reference processing 110 ReferenceDiscoverer* reference_discoverer(); 111 void set_soft_reference_policy(bool clear); 112 113 // Non-strong reference processing 114 void process_non_strong_references(); 115 116 // Page allocation 117 ZPage* alloc_page(uint8_t type, size_t size, ZAllocationFlags flags); 118 void undo_alloc_page(ZPage* page); 119 void free_page(ZPage* page, bool reclaimed); 120 121 // Uncommit memory 122 uint64_t uncommit(uint64_t delay); 123 124 // Object allocation 125 uintptr_t alloc_tlab(size_t size); 126 uintptr_t alloc_object(size_t size); 127 uintptr_t alloc_object_for_relocation(size_t size); | 88 size_t used_low() const; 89 size_t used() const; 90 size_t unused() const; 91 size_t allocated() const; 92 size_t reclaimed() const; 93 94 size_t tlab_capacity() const; 95 size_t tlab_used() const; 96 size_t max_tlab_size() const; 97 size_t unsafe_max_tlab_alloc() const; 98 99 bool is_in(uintptr_t addr) const; 100 uint32_t hash_oop(uintptr_t addr) const; 101 102 // Workers 103 uint nconcurrent_worker_threads() const; 104 uint nconcurrent_no_boost_worker_threads() const; 105 void set_boost_worker_threads(bool boost); 106 void worker_threads_do(ThreadClosure* tc) const; 107 void print_worker_threads_on(outputStream* st) const; 108 // Runs the given AbstractGangTask with the current active workers, returning the 109 // total time taken. 110 Tickspan run_task(AbstractGangTask* task); 111 112 113 // Reference processing 114 ReferenceDiscoverer* reference_discoverer(); 115 void set_soft_reference_policy(bool clear); 116 117 // Non-strong reference processing 118 void process_non_strong_references(); 119 120 // Page allocation 121 ZPage* alloc_page(uint8_t type, size_t size, ZAllocationFlags flags); 122 void undo_alloc_page(ZPage* page); 123 void free_page(ZPage* page, bool reclaimed); 124 125 // Uncommit memory 126 uint64_t uncommit(uint64_t delay); 127 128 // Object allocation 129 uintptr_t alloc_tlab(size_t size); 130 uintptr_t alloc_object(size_t size); 131 uintptr_t alloc_object_for_relocation(size_t size); |