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

JSR292: implement MemberName interning

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: hs25
    • Fix Version/s: tbd_minor
    • Component/s: hotspot
    • Labels:
      None

      Description

      Implement MemberName interning.

      There's a problem with initializing MemberNames.
       
      MethodHandles::init_method_MemberName stores a reference to corresponding MemberName in InstanceKlass's MemberNameTable:
        m->method_holder()->add_member_name(m->method_idnum(), mname);

      But it's possible to create multiple MemberName instances for the same method and previously stored reference is overwritten.
      It can lead to problems (like JDK-8023004) during class redefinition.

      Interning of MemberName instances should solve the problem.

        Attachments

        1. hs_err_pid84918.log
          35 kB
          Vladimir Ivanov
        2. hs_err_pid85772.log
          31 kB
          Vladimir Ivanov

          Issue Links

            Activity

              People

              • Assignee:
                vlivanov Vladimir Ivanov
                Reporter:
                vlivanov Vladimir Ivanov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: