Remove HandleAllocationLimit and TotalHandleAllocationLimit when removing TraceHandleAllocation

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot
    • b112

      HandleAllocationLimit and TotalHandleAllocationLimit according to this piece of code:

        notproduct(size_t, HandleAllocationLimit, 1024, \
                "Threshold for HandleMark allocation when +TraceHandleAllocation "\
                "is used") \

      and:

        // The thread local handle areas should not get very large
        if (TraceHandleAllocation && (size_t)handles_visited > TotalHandleAllocationLimit) {
      #ifdef ASSERT
          warning("%d: Visited in HandleMark : " SIZE_FORMAT, _nof_handlemarks, handles_visited);
      #else
          warning("Visited in HandleMark : " SIZE_FORMAT, handles_visited);
      #endif
        }

      are only used if TraceHandleAllocation is ON, so they should be removed alongside TraceHandleAllocation (JDK-8146850)

            Assignee:
            Gerard Ziemski (Inactive)
            Reporter:
            Gerard Ziemski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: