< prev index next >

src/hotspot/share/utilities/concurrentHashTableTasks.inline.hpp

Print this page




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_UTILITIES_CONCURRENTHASHTABLETASKS_INLINE_HPP
  26 #define SHARE_UTILITIES_CONCURRENTHASHTABLETASKS_INLINE_HPP
  27 

  28 #include "utilities/globalDefinitions.hpp"
  29 #include "utilities/concurrentHashTable.inline.hpp"
  30 
  31 // This inline file contains BulkDeleteTask and GrowTasks which are both bucket
  32 // operations, which they are serialized with each other.
  33 
  34 // Base class for pause and/or parallel bulk operations.
  35 template <typename CONFIG, MEMFLAGS F>
  36 class ConcurrentHashTable<CONFIG, F>::BucketsOperation {
  37  protected:
  38   ConcurrentHashTable<CONFIG, F>* _cht;
  39 
  40   // Default size of _task_size_log2
  41   static const size_t DEFAULT_TASK_SIZE_LOG2 = 12;
  42 
  43   // The table is split into ranges, every increment is one range.
  44   volatile size_t _next_to_claim;
  45   size_t _task_size_log2; // Number of buckets.
  46   size_t _stop_task;      // Last task
  47   size_t _size_log2;      // Table size.




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_UTILITIES_CONCURRENTHASHTABLETASKS_INLINE_HPP
  26 #define SHARE_UTILITIES_CONCURRENTHASHTABLETASKS_INLINE_HPP
  27 
  28 #include "runtime/atomic.hpp"
  29 #include "utilities/globalDefinitions.hpp"
  30 #include "utilities/concurrentHashTable.inline.hpp"
  31 
  32 // This inline file contains BulkDeleteTask and GrowTasks which are both bucket
  33 // operations, which they are serialized with each other.
  34 
  35 // Base class for pause and/or parallel bulk operations.
  36 template <typename CONFIG, MEMFLAGS F>
  37 class ConcurrentHashTable<CONFIG, F>::BucketsOperation {
  38  protected:
  39   ConcurrentHashTable<CONFIG, F>* _cht;
  40 
  41   // Default size of _task_size_log2
  42   static const size_t DEFAULT_TASK_SIZE_LOG2 = 12;
  43 
  44   // The table is split into ranges, every increment is one range.
  45   volatile size_t _next_to_claim;
  46   size_t _task_size_log2; // Number of buckets.
  47   size_t _stop_task;      // Last task
  48   size_t _size_log2;      // Table size.


< prev index next >