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

Update BoundLookup/TableSwitchInstruction constructors to avoid redundant calculation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 24
    • core-libs

      These 2 classes' constructors currently perform double-read and do not sanitize data on first read, to compute the instruction size. We can utilize flexible constructor bodies to perform the reading, validation, and even the final instance field assignment before the super constructor call.

            Unassigned Unassigned
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: