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

Remove HandleAllocationLimit and TotalHandleAllocationLimit when removing TraceHandleAllocation

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b112

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gziemski Gerard Ziemski
              Reporter:
              gziemski Gerard Ziemski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: