JDK-8076212 : AllocateHeap() and ReallocateHeap() should be inlined.
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • Submitted: 2015-03-28
  • Updated: 2016-04-07
  • Resolved: 2015-04-29
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 8 JDK 9
8u60Fixed 9 b64Fixed
Related Reports
Relates :  
Description
http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2015-March/014165.html

I tried to use NMT with details option on OpenJDK7 on RHEL6.6, but I got
address at AllocateHeap() as malloc() caller.

I checked symbol in libjvm.so in OracleJDK8u40 Linux x64, it has
AllocateHeap() symbol.

AllocateHeap() is defined as inline function, and it gives CURRENT_PC to
os::malloc(). I guess that implementation expects AllocateHeap() will be
inlined.

It may occur with GCC (g++) optimization only, however I want to fix it to
analyze native memory with NMT on Linux.