File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 36
36
class G1ThreadLocalData {
37
37
private:
38
38
SATBMarkQueue _satb_mark_queue;
39
+ // The current base address of the card table. Accessed by the barrier to do
40
+ // the card mark. Changed as required by the refinement control thread to
41
+ // implement card table switching.
42
+ //
43
+ // Tests showed that embedding this value in the TLS block is the cheapest
44
+ // way for fast access to this value in the barrier.
45
+ // E.g. embedding an address to that value directly into the code stream and
46
+ // then loading from that was found to be slower on non-x64 architectures.
47
+ // Additionally it increases code size a lot.
39
48
G1CardTable::CardValue* _byte_map_base;
40
49
41
50
// Per-thread cache of pinned object count to reduce atomic operation traffic
You can’t perform that action at this time.
0 commit comments