src/hotspot/share/gc/shared/weakProcessor.hpp
changeset 47676 b1c020fc35a3
parent 47648 226b1fc611b9
child 51546 b9f6a4427da9
equal deleted inserted replaced
47674:1587ffa1496a 47676:b1c020fc35a3
    35 class WeakProcessor : AllStatic {
    35 class WeakProcessor : AllStatic {
    36 public:
    36 public:
    37   // Visit all oop*s and apply the keep_alive closure if the referenced
    37   // Visit all oop*s and apply the keep_alive closure if the referenced
    38   // object is considered alive by the is_alive closure, otherwise do some
    38   // object is considered alive by the is_alive closure, otherwise do some
    39   // container specific cleanup of element holding the oop.
    39   // container specific cleanup of element holding the oop.
    40   //
    40   static void weak_oops_do(BoolObjectClosure* is_alive, OopClosure* keep_alive);
    41   // The complete closure is used as a post-processing step,
       
    42   // called after all container have been processed.
       
    43   static void weak_oops_do(BoolObjectClosure* is_alive, OopClosure* keep_alive, VoidClosure* complete = NULL);
       
    44 
    41 
    45   // Visit all oop*s and apply the given closure.
    42   // Visit all oop*s and apply the given closure.
    46   static void oops_do(OopClosure* closure);
    43   static void oops_do(OopClosure* closure);
    47 };
    44 };
    48 
    45