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

Investigate mark_newly_obsolete_methods

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 17
    • hotspot
    • None

      In InstanceKlass::mark_newly_obsolete_methods which is called during RedefineClasses,

      [~sspitsyn] asks why the check emcp_method_count != 0 is needed at the line:
      4005 if (emcp_method_count != 0 && obsolete_method_count != 0 &&

      Suppose, the emcp_method_count is equal to 0.
      Then do we really want to skip marking all the methods of this InstanceKlass as obsolete?

      It doesn't look right to me either, and there should be a test (can adapt RedefineRunningMethods.java)

            Unassigned Unassigned
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: