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

Remove redundant checks in ciField.cpp

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • 26
    • hotspot

      In 2019, Jorn added that all `final` fields in classes that reside in the `java.lang` packages are trusted fields in the class `ciFields.cpp`. This would allow us to remove some of the previous checks as they are already covered by the package check.

      The package check is: holder->is_in_package("java/lang"))

      For example, checking if he holder is java.lang.String or if it is a wrapper class.

            aseoane Anton Seoane Ampudia
            pminborg Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: