mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
8042195: Introduce umbrella header orderAccess.inline.hpp
Reviewed-by: dholmes, kvn, stefank, twisti
This commit is contained in:
parent
3073f25b0d
commit
6e6f0720a9
81 changed files with 196 additions and 243 deletions
|
@ -33,6 +33,7 @@
|
|||
#include "gc_implementation/g1/g1SATBCardTableModRefBS.hpp"
|
||||
#include "gc_implementation/g1/heapRegionSet.inline.hpp"
|
||||
#include "gc_implementation/g1/heapRegionSeq.inline.hpp"
|
||||
#include "runtime/orderAccess.inline.hpp"
|
||||
#include "utilities/taskqueue.hpp"
|
||||
|
||||
// Inline functions for G1CollectedHeap
|
||||
|
@ -60,6 +61,19 @@ G1CollectedHeap::heap_region_containing(const T addr) const {
|
|||
return hr;
|
||||
}
|
||||
|
||||
inline void G1CollectedHeap::reset_gc_time_stamp() {
|
||||
_gc_time_stamp = 0;
|
||||
OrderAccess::fence();
|
||||
// Clear the cached CSet starting regions and time stamps.
|
||||
// Their validity is dependent on the GC timestamp.
|
||||
clear_cset_start_regions();
|
||||
}
|
||||
|
||||
inline void G1CollectedHeap::increment_gc_time_stamp() {
|
||||
++_gc_time_stamp;
|
||||
OrderAccess::fence();
|
||||
}
|
||||
|
||||
inline void G1CollectedHeap::old_set_remove(HeapRegion* hr) {
|
||||
_old_set.remove(hr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue