--- old/src/hotspot/share/memory/binaryTreeDictionary.inline.hpp 2018-05-09 12:24:26.171515655 +0200 +++ new/src/hotspot/share/memory/binaryTreeDictionary.inline.hpp 2018-05-09 12:24:26.031514469 +0200 @@ -30,8 +30,8 @@ #include "logging/logStream.hpp" #include "memory/binaryTreeDictionary.hpp" #include "memory/freeList.inline.hpp" -#include "memory/metachunk.hpp" #include "memory/resourceArea.hpp" +#include "runtime/mutex.hpp" #include "runtime/globals.hpp" #include "utilities/macros.hpp" #include "utilities/ostream.hpp" @@ -1022,4 +1022,15 @@ guarantee(total_size() == total_size_in_tree(root()), "Total Size inconsistency"); } +template +size_t BinaryTreeDictionary::total_chunk_size(debug_only(const Mutex* lock)) const { + debug_only( + if (lock != NULL && lock->owned_by_self()) { + assert(total_size_in_tree(root()) == total_size(), + "_total_size inconsistency"); + } + ) + return total_size(); +} + #endif // SHARE_VM_MEMORY_BINARYTREEDICTIONARY_INLINE_HPP