src/hotspot/share/gc/shared/taskqueue.inline.hpp
changeset 50953 0fad17c646c9
parent 50429 83aec1d357d4
child 51292 0538a5cdb474
--- a/src/hotspot/share/gc/shared/taskqueue.inline.hpp	Sun Jul 08 20:00:46 2018 -0400
+++ b/src/hotspot/share/gc/shared/taskqueue.inline.hpp	Mon Jul 09 14:12:50 2018 +0200
@@ -252,12 +252,12 @@
 template<class T, MEMFLAGS F> bool
 GenericTaskQueueSet<T, F>::steal(uint queue_num, int* seed, E& t) {
   for (uint i = 0; i < 2 * _n; i++) {
+    TASKQUEUE_STATS_ONLY(queue(queue_num)->stats.record_steal_attempt());
     if (steal_best_of_2(queue_num, seed, t)) {
-      TASKQUEUE_STATS_ONLY(queue(queue_num)->stats.record_steal(true));
+      TASKQUEUE_STATS_ONLY(queue(queue_num)->stats.record_steal());
       return true;
     }
   }
-  TASKQUEUE_STATS_ONLY(queue(queue_num)->stats.record_steal(false));
   return false;
 }