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

AllocateHeap() and ReallocateHeap() should be inlined.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • 7
    • b64
    • linux

        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.

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

                Created:
                Updated:
                Resolved: