Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8076212

AllocateHeap() and ReallocateHeap() should be inlined.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
      7
    • Resolved In Build:
      b64
    • OS:
      linux

      Backports

        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.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ysuenaga Yasumasa Suenaga
                  Reporter:
                  ysuenaga Yasumasa Suenaga
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: