Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp @ 20197:ce8f6bb717c9
8042195: Introduce umbrella header orderAccess.inline.hpp.
Reviewed-by: dholmes, kvn, stefank, twisti
author | goetz |
---|---|
date | Tue, 29 Apr 2014 15:17:27 +0200 |
parents | a45a4f5a9609 |
children | d7e2d5f2846b |
comparison
equal
deleted
inserted
replaced
20196:c8dd4f65cc76 | 20197:ce8f6bb717c9 |
---|---|
1122 | 1122 |
1123 unsigned get_gc_time_stamp() { | 1123 unsigned get_gc_time_stamp() { |
1124 return _gc_time_stamp; | 1124 return _gc_time_stamp; |
1125 } | 1125 } |
1126 | 1126 |
1127 void reset_gc_time_stamp() { | 1127 inline void reset_gc_time_stamp(); |
1128 _gc_time_stamp = 0; | |
1129 OrderAccess::fence(); | |
1130 // Clear the cached CSet starting regions and time stamps. | |
1131 // Their validity is dependent on the GC timestamp. | |
1132 clear_cset_start_regions(); | |
1133 } | |
1134 | 1128 |
1135 void check_gc_time_stamps() PRODUCT_RETURN; | 1129 void check_gc_time_stamps() PRODUCT_RETURN; |
1136 | 1130 |
1137 void increment_gc_time_stamp() { | 1131 inline void increment_gc_time_stamp(); |
1138 ++_gc_time_stamp; | |
1139 OrderAccess::fence(); | |
1140 } | |
1141 | 1132 |
1142 // Reset the given region's GC timestamp. If it's starts humongous, | 1133 // Reset the given region's GC timestamp. If it's starts humongous, |
1143 // also reset the GC timestamp of its corresponding | 1134 // also reset the GC timestamp of its corresponding |
1144 // continues humongous regions too. | 1135 // continues humongous regions too. |
1145 void reset_gc_time_stamps(HeapRegion* hr); | 1136 void reset_gc_time_stamps(HeapRegion* hr); |