mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
parent
ca9afd25f6
commit
5285c9ea86
2 changed files with 3 additions and 3 deletions
|
@ -4052,7 +4052,7 @@ void Threads::change_thread_claim_parity() {
|
|||
"Not in range.");
|
||||
}
|
||||
|
||||
#ifndef PRODUCT
|
||||
#ifdef ASSERT
|
||||
void Threads::assert_all_threads_claimed() {
|
||||
ALL_JAVA_THREADS(p) {
|
||||
const int thread_parity = p->oops_do_parity();
|
||||
|
@ -4060,7 +4060,7 @@ void Threads::assert_all_threads_claimed() {
|
|||
err_msg("Thread " PTR_FORMAT " has incorrect parity %d != %d", p2i(p), thread_parity, _thread_claim_parity));
|
||||
}
|
||||
}
|
||||
#endif // PRODUCT
|
||||
#endif // ASSERT
|
||||
|
||||
void Threads::possibly_parallel_oops_do(bool is_par, OopClosure* f, CLDClosure* cld_f, CodeBlobClosure* cf) {
|
||||
int cp = Threads::thread_claim_parity();
|
||||
|
|
|
@ -1901,7 +1901,7 @@ class Threads: AllStatic {
|
|||
// never set the global parity to 0.
|
||||
static int thread_claim_parity() { return _thread_claim_parity; }
|
||||
static void change_thread_claim_parity();
|
||||
static void assert_all_threads_claimed() PRODUCT_RETURN;
|
||||
static void assert_all_threads_claimed() NOT_DEBUG_RETURN;
|
||||
|
||||
// Apply "f->do_oop" to all root oops in all threads.
|
||||
// This version may only be called by sequential code.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue