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

ResourceMark may be missing inside initialize_[vi]table

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b03

      Description

      After JDK-8178350, try removing this line inside InstanceKlass::link_class_impl():

      - ResourceMark rm(THREAD); // delete
              vtable().initialize_vtable(true, CHECK_false);
              itable().initialize_itable(true, CHECK_false);

      You will get an assert about missing ResourceMark. It's unclear to me whether whether the allocated object(s) should be scoped, or should be returned to a higher scope. If it's the former, it's better to remove the above ResourceMark, and add a ResourceMark where it's needed.

      More investigation is needed.

        Attachments

          Activity

            People

            Assignee:
            lfoltan Lois Foltan
            Reporter:
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: