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

CDS ArchivedEnumTest fails with StaticProperty::JAVA_LOCALE_USE_OLD_ISO_CODES

XMLWordPrintable

    • b20

      This happens after JDK-8295232

      [2.351s][warning][cds,heap] Archive heap points to a static field that may be reinitialized at runtime:
      [2.351s][warning][cds,heap] Field: jdk/internal/util/StaticProperty::JAVA_LOCALE_USE_OLD_ISO_CODES
      [2.351s][warning][cds,heap] Value: java.lang.String
      [2.351s][warning][cds,heap] {0x00000000c18f6028} - klass: 'java/lang/String'
      [2.351s][warning][cds,heap] - string: ""
      [2.351s][warning][cds,heap] - ---- fields (total size 3 words):
      [2.351s][warning][cds,heap] - private 'hash' 'I' @12 0 (0x00000000)
      [2.351s][warning][cds,heap] - private final 'coder' 'B' @16 0 (0x00)
      [2.351s][warning][cds,heap] - private 'hashIsZero' 'Z' @17 true (0x01)
      [2.351s][warning][cds,heap] - abstract internal 'flags' 'B' @18 0 (0x00)
      [2.351s][warning][cds,heap] - private final synchronized 'value' '[B' @20 [B{0x00000000c18f6040} (0xc18f6040)
      [2.351s][warning][cds,heap] --- trace begin ---
      [2.351s][warning][cds,heap] [ 0] (shared string table)
      [2.351s][warning][cds,heap] [ 1] {0x00000000c18f6028} java.lang.String
      [2.351s][warning][cds,heap] --- trace end ---
      [2.351s][warning][cds,heap]
      [2.353s][warning][cds,heap] Scanned 23829 objects. Found 1 case(s) where an object points to a static field that may be reinitialized at runtime.

      ================
      The fix is to add this field to the exception table in src/hotspot/share/cds/cdsHeapVerifier.cpp

            iklam Ioi Lam
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: