mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8234740: Harmonize parameter order in Atomic - cmpxchg
Reviewed-by: rehn, dholmes
This commit is contained in:
parent
3d426623bf
commit
0ad50c2b5c
144 changed files with 504 additions and 506 deletions
|
@ -323,7 +323,7 @@ void report_java_out_of_memory(const char* message) {
|
|||
// same time. To avoid dumping the heap or executing the data collection
|
||||
// commands multiple times we just do it once when the first threads reports
|
||||
// the error.
|
||||
if (Atomic::cmpxchg(1, &out_of_memory_reported, 0) == 0) {
|
||||
if (Atomic::cmpxchg(&out_of_memory_reported, 0, 1) == 0) {
|
||||
// create heap dump before OnOutOfMemoryError commands are executed
|
||||
if (HeapDumpOnOutOfMemoryError) {
|
||||
tty->print_cr("java.lang.OutOfMemoryError: %s", message);
|
||||
|
@ -762,7 +762,7 @@ bool handle_assert_poison_fault(const void* ucVoid, const void* faulting_address
|
|||
// Store Context away.
|
||||
if (ucVoid) {
|
||||
const intx my_tid = os::current_thread_id();
|
||||
if (Atomic::cmpxchg(my_tid, &g_asserting_thread, (intx)0) == 0) {
|
||||
if (Atomic::cmpxchg(&g_asserting_thread, (intx)0, my_tid) == 0) {
|
||||
store_context(ucVoid);
|
||||
g_assertion_context = &g_stored_assertion_context;
|
||||
}
|
||||
|
@ -772,4 +772,3 @@ bool handle_assert_poison_fault(const void* ucVoid, const void* faulting_address
|
|||
return false;
|
||||
}
|
||||
#endif // CAN_SHOW_REGISTERS_ON_ASSERT
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue