comparison src/share/vm/gc_implementation/g1/satbQueue.hpp @ 17747:f99e331f6ef6

8029162: G1: Shared SATB queue never enabled Reviewed-by: brutisso, mgerdin, tschatzl
author pliden
date Fri, 10 Jan 2014 09:54:25 +0100
parents 2ace1c4ee8da
children 4ca6dc0799b6 8847586c9037
comparison
equal deleted inserted replaced
17746:a258f8cb530f 17747:f99e331f6ef6
85 // "par" is true, then "worker" is the par thread id; if "false", worker 85 // "par" is true, then "worker" is the par thread id; if "false", worker
86 // is ignored. 86 // is ignored.
87 bool apply_closure_to_completed_buffer_work(bool par, int worker); 87 bool apply_closure_to_completed_buffer_work(bool par, int worker);
88 88
89 #ifdef ASSERT 89 #ifdef ASSERT
90 void dump_active_values(JavaThread* first, bool expected_active); 90 void dump_active_states(bool expected_active);
91 void verify_active_states(bool expected_active);
91 #endif // ASSERT 92 #endif // ASSERT
92 93
93 public: 94 public:
94 SATBMarkQueueSet(); 95 SATBMarkQueueSet();
95 96
97 int process_completed_threshold, 98 int process_completed_threshold,
98 Mutex* lock); 99 Mutex* lock);
99 100
100 static void handle_zero_index_for_thread(JavaThread* t); 101 static void handle_zero_index_for_thread(JavaThread* t);
101 102
102 // Apply "set_active(b)" to all Java threads' SATB queues. It should be 103 // Apply "set_active(active)" to all SATB queues in the set. It should be
103 // called only with the world stopped. The method will assert that the 104 // called only with the world stopped. The method will assert that the
104 // SATB queues of all threads it visits, as well as the SATB queue 105 // SATB queues of all threads it visits, as well as the SATB queue
105 // set itself, has an active value same as expected_active. 106 // set itself, has an active value same as expected_active.
106 void set_active_all_threads(bool b, bool expected_active); 107 void set_active_all_threads(bool active, bool expected_active);
107 108
108 // Filter all the currently-active SATB buffers. 109 // Filter all the currently-active SATB buffers.
109 void filter_thread_buffers(); 110 void filter_thread_buffers();
110 111
111 // Register "blk" as "the closure" for all queues. Only one such closure 112 // Register "blk" as "the closure" for all queues. Only one such closure