Request for review (xs) - 8001584

Jon Masamitsu jon.masamitsu at oracle.com
Thu Oct 25 15:18:27 UTC 2012


8001584: NPG: Incorrect assertion in BinaryTreeDictionary::get_chunk()

The assertion

      assert(dither != FreeBlockDictionary<Chunk_t>::exactly ||
            res->size() == size, "Not correct size");

does not take into account that res may be NULL (as the assertion
above it does).

http://cr.openjdk.java.net/~jmasa/8001584/webrev.00/

or the diff

--- a/src/share/vm/memory/binaryTreeDictionary.hpp

+++ b/src/share/vm/memory/binaryTreeDictionary.hpp

@@ -259,7 +259,7 @@

      assert(res == NULL || res->is_free(),

             "Should be returning a free chunk");

      assert(dither != FreeBlockDictionary<Chunk_t>::exactly ||

-           res->size() == size, "Not correct size");

+           res == NULL || res->size() == size, "Not correct size");

      return res;

    }

Thanks.

Jon



More information about the hotspot-gc-dev mailing list