mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8040804: G1: Concurrent mark stuck in loop calling os::elapsedVTime()
Reviewed-by: brutisso, tschatzl
This commit is contained in:
parent
3f35cb0ca0
commit
04341bfffb
2 changed files with 7 additions and 3 deletions
|
@ -542,8 +542,12 @@ protected:
|
|||
// frequently.
|
||||
HeapRegion* claim_region(uint worker_id);
|
||||
|
||||
// It determines whether we've run out of regions to scan
|
||||
bool out_of_regions() { return _finger == _heap_end; }
|
||||
// It determines whether we've run out of regions to scan. Note that
|
||||
// the finger can point past the heap end in case the heap was expanded
|
||||
// to satisfy an allocation without doing a GC. This is fine, because all
|
||||
// objects in those regions will be considered live anyway because of
|
||||
// SATB guarantees (i.e. their TAMS will be equal to bottom).
|
||||
bool out_of_regions() { return _finger >= _heap_end; }
|
||||
|
||||
// Returns the task with the given id
|
||||
CMTask* task(int id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue