< prev index next >
src/share/vm/gc/g1/heapRegion.cpp
Print this page
rev 10868 : [mq]: 8153170-card-live-data-does-handle-eager-reclaim
*** 185,194 ****
--- 185,195 ----
}
}
zero_marked_bytes();
init_top_at_mark_start();
+ _gc_time_stamp = G1CollectedHeap::heap()->get_gc_time_stamp();
if (clear_space) clear(SpaceDecorator::Mangle);
}
void HeapRegion::par_clear() {
assert(used() == 0, "the region should have been already cleared");
*** 1042,1052 ****
}
}
void G1ContiguousSpace::record_timestamp() {
G1CollectedHeap* g1h = G1CollectedHeap::heap();
! unsigned curr_gc_time_stamp = g1h->get_gc_time_stamp();
if (_gc_time_stamp < curr_gc_time_stamp) {
// Setting the time stamp here tells concurrent readers to look at
// scan_top to know the maximum allowed address to look at.
--- 1043,1053 ----
}
}
void G1ContiguousSpace::record_timestamp() {
G1CollectedHeap* g1h = G1CollectedHeap::heap();
! uint curr_gc_time_stamp = g1h->get_gc_time_stamp();
if (_gc_time_stamp < curr_gc_time_stamp) {
// Setting the time stamp here tells concurrent readers to look at
// scan_top to know the maximum allowed address to look at.
< prev index next >