JDK-8237512 : AArch64: aarch64TestHook leaks a BufferBlob
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 8-aarch64,11,14,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: aarch64
  • Submitted: 2020-01-20
  • Updated: 2021-02-01
  • Resolved: 2020-01-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 15 Other
11.0.10-oracleFixed 15 b07Fixed openjdk8u292Fixed
Related Reports
Relates :  
Description
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.
Comments
Fix Request (11u) This improves memory footprint (considerably for low-footprint devices). Patch applies cleanly to 11u, tier1 x {fastdebug,release} passes on Linux aarch64.
09-09-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/ec9dead6ae87 User: adinn Date: 2020-01-22 09:14:40 +0000
22-01-2020

Review thread: https://mail.openjdk.java.net/pipermail/hotspot-dev/2020-January/040554.html
20-01-2020