@@ -85,19 +85,19 @@ class G1ScanRSForOptionalClosure : public OopClosure {
85
85
86
86
// This closure is applied to the fields of the objects that have just been copied during evacuation.
87
87
class G1ScanEvacuatedObjClosure : public G1ScanClosureBase {
88
- friend class G1ScanInYoungSetter ;
88
+ friend class G1SkipCardEnqueueSetter ;
89
89
90
- enum ScanningInYoungValues {
90
+ enum SkipCardEnqueueTristate {
91
91
False = 0 ,
92
92
True,
93
93
Uninitialized
94
94
};
95
95
96
- ScanningInYoungValues _scanning_in_young ;
96
+ SkipCardEnqueueTristate _skip_card_enqueue ;
97
97
98
98
public:
99
99
G1ScanEvacuatedObjClosure (G1CollectedHeap* g1h, G1ParScanThreadState* par_scan_state) :
100
- G1ScanClosureBase (g1h, par_scan_state), _scanning_in_young (Uninitialized) { }
100
+ G1ScanClosureBase (g1h, par_scan_state), _skip_card_enqueue (Uninitialized) { }
101
101
102
102
template <class T > void do_oop_work (T* p);
103
103
virtual void do_oop (oop* p) { do_oop_work (p); }
@@ -111,18 +111,18 @@ class G1ScanEvacuatedObjClosure : public G1ScanClosureBase {
111
111
}
112
112
};
113
113
114
- // RAII object to properly set the _scanning_in_young field in G1ScanEvacuatedObjClosure.
115
- class G1ScanInYoungSetter : public StackObj {
114
+ // RAII object to properly set the _skip_card_enqueue field in G1ScanEvacuatedObjClosure.
115
+ class G1SkipCardEnqueueSetter : public StackObj {
116
116
G1ScanEvacuatedObjClosure* _closure;
117
117
118
118
public:
119
- G1ScanInYoungSetter (G1ScanEvacuatedObjClosure* closure, bool new_value) : _closure(closure) {
120
- assert (_closure->_scanning_in_young == G1ScanEvacuatedObjClosure::Uninitialized, " Must not be set" );
121
- _closure->_scanning_in_young = new_value ? G1ScanEvacuatedObjClosure::True : G1ScanEvacuatedObjClosure::False;
119
+ G1SkipCardEnqueueSetter (G1ScanEvacuatedObjClosure* closure, bool new_value) : _closure(closure) {
120
+ assert (_closure->_skip_card_enqueue == G1ScanEvacuatedObjClosure::Uninitialized, " Must not be set" );
121
+ _closure->_skip_card_enqueue = new_value ? G1ScanEvacuatedObjClosure::True : G1ScanEvacuatedObjClosure::False;
122
122
}
123
123
124
- ~G1ScanInYoungSetter () {
125
- DEBUG_ONLY (_closure->_scanning_in_young = G1ScanEvacuatedObjClosure::Uninitialized;)
124
+ ~G1SkipCardEnqueueSetter () {
125
+ DEBUG_ONLY (_closure->_skip_card_enqueue = G1ScanEvacuatedObjClosure::Uninitialized;)
126
126
}
127
127
};
128
128
0 commit comments