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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 10
    • Component/s: hotspot
    • b31

        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


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

                Created:
                Updated:
                Resolved: