< prev index next >

src/hotspot/share/utilities/concurrentHashTable.hpp

Print this page
*** 408,15 ***
    // Default sizes
    static const size_t DEFAULT_MAX_SIZE_LOG2 = 21;
    static const size_t DEFAULT_START_SIZE_LOG2 = 13;
    static const size_t DEFAULT_GROW_HINT = 4; // Chain length
    static const bool DEFAULT_ENABLE_STATISTICS = false;
    ConcurrentHashTable(size_t log2size = DEFAULT_START_SIZE_LOG2,
                        size_t log2size_limit = DEFAULT_MAX_SIZE_LOG2,
                        size_t grow_hint = DEFAULT_GROW_HINT,
                        bool enable_statistics = DEFAULT_ENABLE_STATISTICS,
!                       Mutex::Rank rank = Mutex::nosafepoint-2,
                        void* context = nullptr);
  
    explicit ConcurrentHashTable(Mutex::Rank rank, void* context, size_t log2size = DEFAULT_START_SIZE_LOG2, bool enable_statistics = DEFAULT_ENABLE_STATISTICS) :
      ConcurrentHashTable(log2size, DEFAULT_MAX_SIZE_LOG2, DEFAULT_GROW_HINT, enable_statistics, rank, context) {}
  
--- 408,16 ---
    // Default sizes
    static const size_t DEFAULT_MAX_SIZE_LOG2 = 21;
    static const size_t DEFAULT_START_SIZE_LOG2 = 13;
    static const size_t DEFAULT_GROW_HINT = 4; // Chain length
    static const bool DEFAULT_ENABLE_STATISTICS = false;
+   static const Mutex::Rank DEFAULT_MUTEX_RANK = static_cast<Mutex::Rank>(static_cast<int>(Mutex::nosafepoint) - 2);
    ConcurrentHashTable(size_t log2size = DEFAULT_START_SIZE_LOG2,
                        size_t log2size_limit = DEFAULT_MAX_SIZE_LOG2,
                        size_t grow_hint = DEFAULT_GROW_HINT,
                        bool enable_statistics = DEFAULT_ENABLE_STATISTICS,
!                       Mutex::Rank rank = DEFAULT_MUTEX_RANK,
                        void* context = nullptr);
  
    explicit ConcurrentHashTable(Mutex::Rank rank, void* context, size_t log2size = DEFAULT_START_SIZE_LOG2, bool enable_statistics = DEFAULT_ENABLE_STATISTICS) :
      ConcurrentHashTable(log2size, DEFAULT_MAX_SIZE_LOG2, DEFAULT_GROW_HINT, enable_statistics, rank, context) {}
  
< prev index next >