NMT: Remove MemTracker::get_virtual_memory_xxx_tracker(), create Tracker in place

XMLWordPrintable

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

      Tracker is a stack object, its constructor/destructor locks/unlocks ThreadCritical, which is heavyweight lock.

      With above API, Tracker is constructed twice, which means performing one more unnecessary lock/unlock.

      Tracker should be constructed in place to avoid unnecessary lock/unlock.

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

              Created:
              Updated:
              Resolved: