comparison src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.hpp @ 1833:8b10f48633dc

6984287: Regularize how GC parallel workers are specified. Summary: Associate number of GC workers with the workgang as opposed to the task. Reviewed-by: johnc, ysr
author jmasa
date Mon, 20 Sep 2010 14:38:38 -0700
parents bba76f745fe6
children 894b1d7c7e01
comparison
equal deleted inserted replaced
1781:97fbf5beff7b 1833:8b10f48633dc
727 size_t* _cursor; 727 size_t* _cursor;
728 ChunkArray* _survivor_plab_array; 728 ChunkArray* _survivor_plab_array;
729 729
730 // Support for marking stack overflow handling 730 // Support for marking stack overflow handling
731 bool take_from_overflow_list(size_t num, CMSMarkStack* to_stack); 731 bool take_from_overflow_list(size_t num, CMSMarkStack* to_stack);
732 bool par_take_from_overflow_list(size_t num, OopTaskQueue* to_work_q); 732 bool par_take_from_overflow_list(size_t num,
733 OopTaskQueue* to_work_q,
734 int no_of_gc_threads);
733 void push_on_overflow_list(oop p); 735 void push_on_overflow_list(oop p);
734 void par_push_on_overflow_list(oop p); 736 void par_push_on_overflow_list(oop p);
735 // the following is, obviously, not, in general, "MT-stable" 737 // the following is, obviously, not, in general, "MT-stable"
736 bool overflow_list_is_empty() const; 738 bool overflow_list_is_empty() const;
737 739
766 // the amount of "useful work" done. 768 // the amount of "useful work" done.
767 size_t preclean_work(bool clean_refs, bool clean_survivors); 769 size_t preclean_work(bool clean_refs, bool clean_survivors);
768 void abortable_preclean(); // Preclean while looking for possible abort 770 void abortable_preclean(); // Preclean while looking for possible abort
769 void initialize_sequential_subtasks_for_young_gen_rescan(int i); 771 void initialize_sequential_subtasks_for_young_gen_rescan(int i);
770 // Helper function for above; merge-sorts the per-thread plab samples 772 // Helper function for above; merge-sorts the per-thread plab samples
771 void merge_survivor_plab_arrays(ContiguousSpace* surv); 773 void merge_survivor_plab_arrays(ContiguousSpace* surv, int no_of_gc_threads);
772 // Resets (i.e. clears) the per-thread plab sample vectors 774 // Resets (i.e. clears) the per-thread plab sample vectors
773 void reset_survivor_plab_arrays(); 775 void reset_survivor_plab_arrays();
774 776
775 // final (second) checkpoint work 777 // final (second) checkpoint work
776 void checkpointRootsFinalWork(bool asynch, bool clear_all_soft_refs, 778 void checkpointRootsFinalWork(bool asynch, bool clear_all_soft_refs,