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

Unnecessary check for JSRs in CDS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • hotspot
    • b21

      InstanceKlass::metaspace_pointers_do() checks if methods contain JSRs because they are rewritten at runtime, but this leads to an unsafe check through the bytecodes. This check, although a small optimization, isn't necessary so it can be removed to improve safety.

      Iterating through bytecodes before verification can mean malformed codes can be parsed by BytecodeStream, leading to unexpected results or hangs.

            matsaave Matias Saavedra Silva
            matsaave Matias Saavedra Silva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: