Mercurial > hg > graal-compiler
diff src/share/vm/gc_implementation/shared/markSweep.hpp @ 1836:894b1d7c7e01
6423256: GC stacks should use a better data structure
6942771: SEGV in ParScanThreadState::take_from_overflow_stack
Reviewed-by: apetrusenko, ysr, pbk
author | jcoomes |
---|---|
date | Tue, 28 Sep 2010 15:56:15 -0700 |
parents | c18cbe5936b8 |
children | f95d63e2154a |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/shared/markSweep.hpp Tue Sep 28 09:51:37 2010 -0700 +++ b/src/share/vm/gc_implementation/shared/markSweep.hpp Tue Sep 28 15:56:15 2010 -0700 @@ -104,23 +104,22 @@ friend class KeepAliveClosure; friend class VM_MarkSweep; friend void marksweep_init(); - friend class DataLayout; // // Vars // protected: // Traversal stacks used during phase1 - static GrowableArray<oop>* _marking_stack; - static GrowableArray<ObjArrayTask>* _objarray_stack; + static Stack<oop> _marking_stack; + static Stack<ObjArrayTask> _objarray_stack; // Stack for live klasses to revisit at end of marking phase - static GrowableArray<Klass*>* _revisit_klass_stack; + static Stack<Klass*> _revisit_klass_stack; // Set (stack) of MDO's to revisit at end of marking phase - static GrowableArray<DataLayout*>* _revisit_mdo_stack; + static Stack<DataLayout*> _revisit_mdo_stack; // Space for storing/restoring mark word - static GrowableArray<markOop>* _preserved_mark_stack; - static GrowableArray<oop>* _preserved_oop_stack; + static Stack<markOop> _preserved_mark_stack; + static Stack<oop> _preserved_oop_stack; static size_t _preserved_count; static size_t _preserved_count_max; static PreservedMark* _preserved_marks;