< prev index next >

src/hotspot/share/gc/z/zBarrier.inline.hpp

Print this page

        

@@ -97,11 +97,11 @@
 
   return ZOop::to_oop(good_addr);
 }
 
 template <ZBarrierFastPath fast_path, ZBarrierSlowPath slow_path>
-inline void ZBarrier::root_barrier(volatile oop* p, oop o) {
+inline void ZBarrier::root_barrier(oop* p, oop o) {
   const uintptr_t addr = ZOop::to_address(o);
 
   // Fast path
   if (fast_path(addr)) {
     return;

@@ -279,19 +279,19 @@
   for (volatile const oop* const end = p + length; p < end; p++) {
     mark_barrier_on_oop_field(p, finalizable);
   }
 }
 
-inline void ZBarrier::mark_barrier_on_root_oop_field(volatile oop* p) {
+inline void ZBarrier::mark_barrier_on_root_oop_field(oop* p) {
   const oop o = *p;
   root_barrier<is_good_or_null_fast_path, mark_barrier_on_root_oop_slow_path>(p, o);
 }
 
 //
 // Relocate barrier
 //
-inline void ZBarrier::relocate_barrier_on_root_oop_field(volatile oop* p) {
+inline void ZBarrier::relocate_barrier_on_root_oop_field(oop* p) {
   const oop o = *p;
   root_barrier<is_good_or_null_fast_path, relocate_barrier_on_root_oop_slow_path>(p, o);
 }
 
 #endif // SHARE_GC_Z_ZBARRIER_INLINE_HPP
< prev index next >