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

Generated Pipeline_Use_Cycle_Mask::operator= interferes with memcpy updates

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11, 12, 13, 14
    • Fix Version/s: 14
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b23

      Description

      The generated class Pipeline_Use_Cycle_Mask from adlc is given a non-trivial assignment operator. That assignment operator doesn't do anything the default trivial assignment operator wouldn't do. Moreover, it leads to -Wclass-memaccess warnings with recent versions of gcc (gcc10 warns, gcc8 apparently doesn't) because there copy assignments of containing otherwise trivial class objects via memcpy.

      The generated non-trivial assignment operator should be removed.

        Attachments

          Activity

            People

            Assignee:
            fweimer Florian Weimer
            Reporter:
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: