Remove preloading of null-restricted static fields classes

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • None
    • Affects Version/s: repo-valhalla
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: