Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/satbQueue.hpp @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | 89ac31a5a7a7 |
children | 52b4284cb496 |
comparison
equal
deleted
inserted
replaced
14908:8db6e76cb658 | 14909:4ca6dc0799b6 |
---|---|
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_states(bool expected_active); | 90 void dump_active_values(JavaThread* first, bool expected_active); |
91 void verify_active_states(bool expected_active); | |
92 #endif // ASSERT | 91 #endif // ASSERT |
93 | 92 |
94 public: | 93 public: |
95 SATBMarkQueueSet(); | 94 SATBMarkQueueSet(); |
96 | 95 |
98 int process_completed_threshold, | 97 int process_completed_threshold, |
99 Mutex* lock); | 98 Mutex* lock); |
100 | 99 |
101 static void handle_zero_index_for_thread(JavaThread* t); | 100 static void handle_zero_index_for_thread(JavaThread* t); |
102 | 101 |
103 // Apply "set_active(active)" to all SATB queues in the set. It should be | 102 // Apply "set_active(b)" to all Java threads' SATB queues. It should be |
104 // called only with the world stopped. The method will assert that the | 103 // called only with the world stopped. The method will assert that the |
105 // SATB queues of all threads it visits, as well as the SATB queue | 104 // SATB queues of all threads it visits, as well as the SATB queue |
106 // set itself, has an active value same as expected_active. | 105 // set itself, has an active value same as expected_active. |
107 void set_active_all_threads(bool active, bool expected_active); | 106 void set_active_all_threads(bool b, bool expected_active); |
108 | 107 |
109 // Filter all the currently-active SATB buffers. | 108 // Filter all the currently-active SATB buffers. |
110 void filter_thread_buffers(); | 109 void filter_thread_buffers(); |
111 | 110 |
112 // Register "blk" as "the closure" for all queues. Only one such closure | 111 // Register "blk" as "the closure" for all queues. Only one such closure |