mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 08:34:30 +02:00
8209126: ZGC: ZMarkStackAllocator::is_initialized() never called
Reviewed-by: eosterlund, tschatzl
This commit is contained in:
parent
6c7f0f0218
commit
abb1e458eb
3 changed files with 8 additions and 2 deletions
|
@ -70,6 +70,10 @@ ZMark::ZMark(ZWorkers* workers, ZPageTable* pagetable) :
|
|||
_ncontinue(0),
|
||||
_nworkers(0) {}
|
||||
|
||||
bool ZMark::is_initialized() const {
|
||||
return _allocator.is_initialized();
|
||||
}
|
||||
|
||||
size_t ZMark::calculate_nstripes(uint nworkers) const {
|
||||
// Calculate the number of stripes from the number of workers we use,
|
||||
// where the number of stripes must be a power of two and we want to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue