src/share/vm/gc_implementation/parallelScavenge/psScavenge.hpp

changeset 548
ba764ed4b6f2
parent 435
a61af66fc99e
child 631
d1605aabd0a1
     1.1 --- a/src/share/vm/gc_implementation/parallelScavenge/psScavenge.hpp	Fri Apr 11 09:56:35 2008 -0400
     1.2 +++ b/src/share/vm/gc_implementation/parallelScavenge/psScavenge.hpp	Sun Apr 13 17:43:42 2008 -0400
     1.3 @@ -116,16 +116,16 @@
     1.4    // If an attempt to promote fails, this method is invoked
     1.5    static void oop_promotion_failed(oop obj, markOop obj_mark);
     1.6  
     1.7 -  static inline bool should_scavenge(oop p);
     1.8 +  template <class T> static inline bool should_scavenge(T* p);
     1.9  
    1.10    // These call should_scavenge() above and, if it returns true, also check that
    1.11    // the object was not newly copied into to_space.  The version with the bool
    1.12    // argument is a convenience wrapper that fetches the to_space pointer from
    1.13    // the heap and calls the other version (if the arg is true).
    1.14 -  static inline bool should_scavenge(oop p, MutableSpace* to_space);
    1.15 -  static inline bool should_scavenge(oop p, bool check_to_space);
    1.16 +  template <class T> static inline bool should_scavenge(T* p, MutableSpace* to_space);
    1.17 +  template <class T> static inline bool should_scavenge(T* p, bool check_to_space);
    1.18  
    1.19 -  inline static void copy_and_push_safe_barrier(PSPromotionManager* pm, oop* p);
    1.20 +  template <class T> inline static void copy_and_push_safe_barrier(PSPromotionManager* pm, T* p);
    1.21  
    1.22    // Is an object in the young generation
    1.23    // This assumes that the HeapWord argument is in the heap,

mercurial