equal
deleted
inserted
replaced
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 |