< prev index next >
src/share/vm/gc/shared/taskqueue.cpp
Print this page
rev 8961 : [mq]: diff-shenandoah.patch
*** 105,114 ****
--- 105,125 ----
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)));
}
+
+ void TaskQueueStats::verify_only_pushes() const
+ {
+ assert((get(pop) == 0),
+ err_msg("pops=" SIZE_FORMAT ,
+ get(pop)));
+ assert((get(steal) == 0),
+ err_msg("steals=" SIZE_FORMAT ,
+ get(steal)));
+ }
+
#endif // ASSERT
#endif // TASKQUEUE_STATS
int TaskQueueSetSuper::randomParkAndMiller(int *seed0) {
const int a = 16807;
< prev index next >