Request for review (xs) - 8001584

Coleen Phillimore coleen.phillimore at oracle.com
Thu Oct 25 21:39:20 UTC 2012


Looks good!
Coleen

On 10/25/2012 11:18 AM, Jon Masamitsu wrote:
> 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