diff --git a/hotspot/src/share/vm/memory/binaryTreeDictionary.hpp b/hotspot/src/share/vm/memory/binaryTreeDictionary.hpp index 5efe8aaa46a..757eb4fdac9 100644 --- a/hotspot/src/share/vm/memory/binaryTreeDictionary.hpp +++ b/hotspot/src/share/vm/memory/binaryTreeDictionary.hpp @@ -259,7 +259,7 @@ class BinaryTreeDictionary: public FreeBlockDictionary { assert(res == NULL || res->is_free(), "Should be returning a free chunk"); assert(dither != FreeBlockDictionary::exactly || - res->size() == size, "Not correct size"); + res == NULL || res->size() == size, "Not correct size"); return res; }