< prev index next >

src/hotspot/share/gc/parallel/parallelScavengeHeap.cpp

Print this page
@@ -229,10 +229,14 @@
  
  bool ParallelScavengeHeap::is_in_reserved(const void* p) const {
    return young_gen()->is_in_reserved(p) || old_gen()->is_in_reserved(p);
  }
  
+ bool ParallelScavengeHeap::requires_barriers(oop p) const {
+   return !is_in_young(p);
+ }
+ 
  // There are two levels of allocation policy here.
  //
  // When an allocation request fails, the requesting thread must invoke a VM
  // operation, transfer control to the VM thread, and await the results of a
  // garbage collection. That is quite expensive, and we should avoid doing it
< prev index next >