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

TempNewSymbol should have correct copy and assignment functions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b105

      Description

        // Operator= increments reference count.
        void operator=(const TempNewSymbol &s) {
          //clear(); //FIXME
          _temp = s._temp;
          if (_temp !=NULL) _temp->increment_refcount();
        }

      But this is also missing a copy constructor.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              coleenp Coleen Phillimore
              Reporter:
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: