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

C2: Remove unused enum in CallGenerator

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 16
    • hotspot
    • b13

      Static code inspection complains the enum below is unused.

      diff -r 13fdf97f0a8f src/hotspot/share/opto/callGenerator.hpp
      --- a/src/hotspot/share/opto/callGenerator.hpp Mon Aug 24 09:35:23 2020 +0200
      +++ b/src/hotspot/share/opto/callGenerator.hpp Tue Aug 25 09:23:47 2020 +0200
      @@ -34,15 +34,10 @@
       //---------------------------CallGenerator-------------------------------------
       // The subclasses of this class handle generation of ideal nodes for
       // call sites and method entry points.
       
       class CallGenerator : public ResourceObj {
      - public:
      - enum {
      - xxxunusedxxx
      - };
      -
        private:
         ciMethod* _method; // The method being called.
       
        protected:
         CallGenerator(ciMethod* method) : _method(method) {}

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: