mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8058298: Separate heap region iterator claim values from the data structures iterated over
Reviewed-by: tschatzl, brutisso
This commit is contained in:
parent
18eb46eb95
commit
6d1c35615a
11 changed files with 157 additions and 354 deletions
|
@ -254,9 +254,6 @@ class HeapRegion: public G1OffsetTableContigSpace {
|
|||
HeapRegionSetBase* _containing_set;
|
||||
#endif // ASSERT
|
||||
|
||||
// For parallel heapRegion traversal.
|
||||
jint _claimed;
|
||||
|
||||
// We use concurrent marking to determine the amount of live data
|
||||
// in each heap region.
|
||||
size_t _prev_marked_bytes; // Bytes known to be live via last completed marking.
|
||||
|
@ -336,19 +333,6 @@ class HeapRegion: public G1OffsetTableContigSpace {
|
|||
// up once during initialization time.
|
||||
static void setup_heap_region_size(size_t initial_heap_size, size_t max_heap_size);
|
||||
|
||||
enum ClaimValues {
|
||||
InitialClaimValue = 0,
|
||||
FinalCountClaimValue = 1,
|
||||
NoteEndClaimValue = 2,
|
||||
ScrubRemSetClaimValue = 3,
|
||||
ParVerifyClaimValue = 4,
|
||||
RebuildRSClaimValue = 5,
|
||||
ParEvacFailureClaimValue = 6,
|
||||
AggregateCountClaimValue = 7,
|
||||
VerifyCountClaimValue = 8,
|
||||
ParMarkRootClaimValue = 9
|
||||
};
|
||||
|
||||
// All allocated blocks are occupied by objects in a HeapRegion
|
||||
bool block_is_obj(const HeapWord* p) const;
|
||||
|
||||
|
@ -691,12 +675,6 @@ class HeapRegion: public G1OffsetTableContigSpace {
|
|||
return (HeapWord *) obj >= next_top_at_mark_start();
|
||||
}
|
||||
|
||||
// For parallel heapRegion traversal.
|
||||
bool claimHeapRegion(int claimValue);
|
||||
jint claim_value() { return _claimed; }
|
||||
// Use this carefully: only when you're sure no one is claiming...
|
||||
void set_claim_value(int claimValue) { _claimed = claimValue; }
|
||||
|
||||
// Returns the "evacuation_failed" property of the region.
|
||||
bool evacuation_failed() { return _evacuation_failed; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue