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

Remove unused InterfaceSupport::_number_of_calls

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: