< prev index next >
src/share/vm/gc/shared/taskqueue.cpp
Print this page
*** 90,113 ****
// Invariants which should hold after a TaskQueue has been emptied and is
// quiescent; they do not hold at arbitrary times.
void TaskQueueStats::verify() const
{
assert(get(push) == get(pop) + get(steal),
! err_msg("push=" SIZE_FORMAT " pop=" SIZE_FORMAT " steal=" SIZE_FORMAT,
! get(push), get(pop), get(steal)));
assert(get(pop_slow) <= get(pop),
! err_msg("pop_slow=" SIZE_FORMAT " pop=" SIZE_FORMAT,
! get(pop_slow), get(pop)));
assert(get(steal) <= get(steal_attempt),
! err_msg("steal=" SIZE_FORMAT " steal_attempt=" SIZE_FORMAT,
! get(steal), get(steal_attempt)));
assert(get(overflow) == 0 || get(push) != 0,
! err_msg("overflow=" SIZE_FORMAT " push=" SIZE_FORMAT,
! get(overflow), get(push)));
assert(get(overflow_max_len) == 0 || get(overflow) != 0,
! err_msg("overflow_max_len=" SIZE_FORMAT " overflow=" SIZE_FORMAT,
! get(overflow_max_len), get(overflow)));
}
#endif // ASSERT
#endif // TASKQUEUE_STATS
int TaskQueueSetSuper::randomParkAndMiller(int *seed0) {
--- 90,113 ----
// Invariants which should hold after a TaskQueue has been emptied and is
// quiescent; they do not hold at arbitrary times.
void TaskQueueStats::verify() const
{
assert(get(push) == get(pop) + get(steal),
! "push=" SIZE_FORMAT " pop=" SIZE_FORMAT " steal=" SIZE_FORMAT,
! get(push), get(pop), get(steal));
assert(get(pop_slow) <= get(pop),
! "pop_slow=" SIZE_FORMAT " pop=" SIZE_FORMAT,
! get(pop_slow), get(pop));
assert(get(steal) <= get(steal_attempt),
! "steal=" SIZE_FORMAT " steal_attempt=" SIZE_FORMAT,
! get(steal), get(steal_attempt));
assert(get(overflow) == 0 || get(push) != 0,
! "overflow=" SIZE_FORMAT " push=" SIZE_FORMAT,
! get(overflow), get(push));
assert(get(overflow_max_len) == 0 || get(overflow) != 0,
! "overflow_max_len=" SIZE_FORMAT " overflow=" SIZE_FORMAT,
! get(overflow_max_len), get(overflow));
}
#endif // ASSERT
#endif // TASKQUEUE_STATS
int TaskQueueSetSuper::randomParkAndMiller(int *seed0) {
< prev index next >