< prev index next >


Print this page
@@ -207,11 +207,13 @@
    bool is_in(const void* p) const;
    // Returns true if the reference is to an object in the reserved space
    // for the young generation.
    // Assumes the the young gen address range is less than that of the old gen.
-   bool is_in_young(oop p);
+   bool is_in_young(oop p) const;
+   virtual bool requires_barriers(oop obj) const { return !is_in_young(obj); }
  #ifdef ASSERT
    bool is_in_partial_collection(const void* p);
< prev index next >