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

NMT: Tracking compiler memory usage of thread's resource area

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b31

      Backports

        Description

        Vladimir Kozlov wrote:
        > Compilers also use a lot thread local ResourceArea -
        > Thread::current()->resource_area() and NEW_RESOURCE_ARRAY() macro.
        > But thread local area is defined as mtThread:

        > Thread() is called from CompilerThread() and we can pass a parameter to
        > indicate user. Or add a virtual method to Thread class to check type of
        > thread.
        >
        > In the past we had compiler local changes to get information how much
        > memory was used during compilation but it was never get pushed. We
        > accessed Arena::_bytes_allocated for that.


        Following email thread for details:
        http://mail.openjdk.java.net/pipermail/hotspot-dev/2017-September/028360.html


          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  zgu Zhengyu Gu
                  Reporter:
                  zgu Zhengyu Gu
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: