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

JSR292: implement MemberName interning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • hs25
    • hotspot
    • None

      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.

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

              Created:
              Updated:
              Resolved: