@@ -112,11 +112,11 @@ _set->release_par_id(id); ++_allocations; ThreadBlockInVM tbiv(this); // Safepoint check. } tty->print_cr("%u allocations: " SIZE_FORMAT, _thread_number, _allocations); - Atomic::add(_allocations, _total_allocations); + Atomic::add(_total_allocations, _allocations); } }; TEST_VM(G1FreeIdSetTest, stress) { const uint start = 5;