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

Remove preloading of null-restricted static fields classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • repo-valhalla
    • hotspot

      The JVM still preloads types of null-restricted static fields. This behavior was necessary when such fields were initialized by the JVM using a default value. The current model requires all null-restricted fields to be strict fields, and their initialization is the responsibility of user code in <clinit>. Because null-restricted static fields are never flattened, and their initialization is performed by Java code, there's no reason for the JVM to continue to preload these classes.

            fparain Frederic Parain
            fparain Frederic Parain
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: