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

Interned strings are omitted from AOT cache

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • 25
    • 25
    • hotspot
    • In Review

      An interned string may be incorrectly omitted from AOT cache under the following circumstances

      (1) Also reported in JDK-8355434: A class that has the following pattern

      public class NonFinalStaticWithInitVal_Helper
      version 51:0
      {
      static Field foo:"Ljava/lang/String;" = String "Dummy 12345678";
      }

      (2) This doesn't seem to affect existing usage of interned strings in the AOT cache, but could lead to future issues

      An AOT-initialized class might contain static fields like this:

          class AOTInitedClass {
               static Sting s = (a + b).intern();

      We must make sure that AOTInitedClass.s is in the interned string table.

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

              Created:
              Updated: