173 } 174 175 return false; 176 } 177 178 uintptr_t ZHeap::block_start(uintptr_t addr) const { 179 const ZPage* const page = _pagetable.get(addr); 180 return page->block_start(addr); 181 } 182 183 size_t ZHeap::block_size(uintptr_t addr) const { 184 const ZPage* const page = _pagetable.get(addr); 185 return page->block_size(addr); 186 } 187 188 bool ZHeap::block_is_obj(uintptr_t addr) const { 189 const ZPage* const page = _pagetable.get(addr); 190 return page->block_is_obj(addr); 191 } 192 193 ZPageTableEntry* ZHeap::pagetable_addr() const { 194 return _pagetable.addr(); 195 } 196 197 uint ZHeap::nconcurrent_worker_threads() const { 198 return _workers.nconcurrent(); 199 } 200 201 uint ZHeap::nconcurrent_no_boost_worker_threads() const { 202 return _workers.nconcurrent_no_boost(); 203 } 204 205 void ZHeap::set_boost_worker_threads(bool boost) { 206 _workers.set_boost(boost); 207 } 208 209 void ZHeap::worker_threads_do(ThreadClosure* tc) const { 210 _workers.threads_do(tc); 211 } 212 213 void ZHeap::print_worker_threads_on(outputStream* st) const { 214 _workers.print_threads_on(st); 215 } 216 | 173 } 174 175 return false; 176 } 177 178 uintptr_t ZHeap::block_start(uintptr_t addr) const { 179 const ZPage* const page = _pagetable.get(addr); 180 return page->block_start(addr); 181 } 182 183 size_t ZHeap::block_size(uintptr_t addr) const { 184 const ZPage* const page = _pagetable.get(addr); 185 return page->block_size(addr); 186 } 187 188 bool ZHeap::block_is_obj(uintptr_t addr) const { 189 const ZPage* const page = _pagetable.get(addr); 190 return page->block_is_obj(addr); 191 } 192 193 uint ZHeap::nconcurrent_worker_threads() const { 194 return _workers.nconcurrent(); 195 } 196 197 uint ZHeap::nconcurrent_no_boost_worker_threads() const { 198 return _workers.nconcurrent_no_boost(); 199 } 200 201 void ZHeap::set_boost_worker_threads(bool boost) { 202 _workers.set_boost(boost); 203 } 204 205 void ZHeap::worker_threads_do(ThreadClosure* tc) const { 206 _workers.threads_do(tc); 207 } 208 209 void ZHeap::print_worker_threads_on(outputStream* st) const { 210 _workers.print_threads_on(st); 211 } 212 |