mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8080775: Better argument formatting for assert() and friends
Reviewed-by: kbarrett, pliden
This commit is contained in:
parent
aa0818a98a
commit
1e71f67736
225 changed files with 1342 additions and 1432 deletions
|
@ -880,7 +880,7 @@ void Thread::check_for_valid_safepoint_state(bool potential_vm_operation) {
|
|||
cur != VMOperationRequest_lock &&
|
||||
cur != VMOperationQueue_lock) ||
|
||||
cur->rank() == Mutex::special) {
|
||||
fatal(err_msg("Thread holding lock at safepoint that vm can block on: %s", cur->name()));
|
||||
fatal("Thread holding lock at safepoint that vm can block on: %s", cur->name());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4103,7 +4103,7 @@ void Threads::assert_all_threads_claimed() {
|
|||
ALL_JAVA_THREADS(p) {
|
||||
const int thread_parity = p->oops_do_parity();
|
||||
assert((thread_parity == _thread_claim_parity),
|
||||
err_msg("Thread " PTR_FORMAT " has incorrect parity %d != %d", p2i(p), thread_parity, _thread_claim_parity));
|
||||
"Thread " PTR_FORMAT " has incorrect parity %d != %d", p2i(p), thread_parity, _thread_claim_parity);
|
||||
}
|
||||
}
|
||||
#endif // ASSERT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue