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

Remove unused InterfaceSupport::_number_of_calls

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 15
    • 15
    • hotspot
    • b17

    Description

      The variable is static long _number_of_calls in class InterfaceSupport, in file interfaceSupport.inline.hpp.

      The place to write the variable is in macroTRACE_CALL, as below:

      ifdef ASSERT
       #define TRACE_CALL(result_type, header) \
       InterfaceSupport::_number_of_calls++; \
       if (CountRuntimeCalls) { \
           static RuntimeHistogramElement* e = new RuntimeHistogramElement(#header); \
           if (e != NULL) e->increment_count(); \
       }
       #define TRACE_CALL(result_type, header) \
       /* do nothing */
       #endif // ASSERT

      But can't find the usage of this variable, so assume it's a useless variable.

      Attachments

        Activity

          People

            njian Ningsheng Jian (Inactive)
            njian Ningsheng Jian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: