1.1 --- a/src/share/vm/memory/defNewGeneration.hpp Thu Oct 21 17:29:24 2010 -0700 1.2 +++ b/src/share/vm/memory/defNewGeneration.hpp Sat Oct 23 23:03:49 2010 -0700 1.3 @@ -82,12 +82,6 @@ 1.4 Stack<oop> _objs_with_preserved_marks; 1.5 Stack<markOop> _preserved_marks_of_objs; 1.6 1.7 - // Returns true if the collection can be safely attempted. 1.8 - // If this method returns false, a collection is not 1.9 - // guaranteed to fail but the system may not be able 1.10 - // to recover from the failure. 1.11 - bool collection_attempt_is_safe(); 1.12 - 1.13 // Promotion failure handling 1.14 OopClosure *_promo_failure_scan_stack_closure; 1.15 void set_promo_failure_scan_stack_closure(OopClosure *scan_stack_closure) { 1.16 @@ -304,6 +298,14 @@ 1.17 1.18 // GC support 1.19 virtual void compute_new_size(); 1.20 + 1.21 + // Returns true if the collection is likely to be safely 1.22 + // completed. Even if this method returns true, a collection 1.23 + // may not be guaranteed to succeed, and the system should be 1.24 + // able to safely unwind and recover from that failure, albeit 1.25 + // at some additional cost. Override superclass's implementation. 1.26 + virtual bool collection_attempt_is_safe(); 1.27 + 1.28 virtual void collect(bool full, 1.29 bool clear_all_soft_refs, 1.30 size_t size,