[aarch64-port-dev ] RFR: 8237512: AArch64: aarch64TestHook leaks a BufferBlob
Andrew Dinn
adinn at redhat.com
Mon Jan 20 08:40:15 UTC 2020
On 20/01/2020 08:15, Nick Gasson wrote:
> Hello,
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8237512
> Webrev: http://cr.openjdk.java.net/~ngasson/8237512/webrev.0/
>
> aarch64TestHook() is called from ICache::initialize() and allocates a
> 500k BufferBlob that it passes to entry() in assembler_aarch64.cpp which
> performs a self-test of the assembler. The BufferBlob needs to be
> explicitly freed or else it will hang around forever. Also we can just
> skip the allocation if ASSERT is not defined as the test is not
> performed in this case.
>
> java -XX:+PrintCodeCache -Xint -version before:
>
> CodeCache: size=49152Kb used=1427Kb max_used=1427Kb free=47724Kb
>
> After:
>
> CodeCache: size=49152Kb used=940Kb max_used=940Kb free=48212Kb
>
> Tested jtreg tier1.
Reviewed, thanks.
regards,
Andrew Dinn
-----------
Senior Principal Software Engineer
Red Hat UK Ltd
Registered in England and Wales under Company Registration No. 03798903
Directors: Michael Cunningham, Michael ("Mike") O'Neill
More information about the aarch64-port-dev
mailing list