src/hotspot/share/utilities/concurrentHashTableTasks.inline.hpp
changeset 50445 bd6b78feb6a3
parent 50158 8e4fcfb4cfe4
child 50608 1609a43e77ae
--- a/src/hotspot/share/utilities/concurrentHashTableTasks.inline.hpp	Thu Jun 07 06:27:09 2018 -0400
+++ b/src/hotspot/share/utilities/concurrentHashTableTasks.inline.hpp	Thu Jun 07 14:11:56 2018 +0200
@@ -25,6 +25,7 @@
 #ifndef SHARE_UTILITIES_CONCURRENT_HASH_TABLE_TASKS_INLINE_HPP
 #define SHARE_UTILITIES_CONCURRENT_HASH_TABLE_TASKS_INLINE_HPP
 
+#include "utilities/globalDefinitions.hpp"
 #include "utilities/concurrentHashTable.inline.hpp"
 
 // This inline file contains BulkDeleteTask and GrowTasks which are both bucket
@@ -63,6 +64,7 @@
   // Calculate starting values.
   void setup() {
     _size_log2 = _cht->_table->_log2_size;
+    _task_size_log2 = MIN2(_task_size_log2, _size_log2);
     size_t tmp = _size_log2 > _task_size_log2 ?
                  _size_log2 - _task_size_log2 : 0;
     _stop_task = (((size_t)1) << tmp);