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

SA: wrong size computation when JVM was built without AOT

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b20

      Description

      When the JVM was built without AOT we observed the following test failure (note that AOT is currently unsupported on some platforms like e.g. PPC64):

      TestInstanceKlassSize was failing because of wrong size computation.
      The problem is that the implementations in the following files don't fit together:

      src/hotspot/share/oops/instanceKlass.cpp:
      bool InstanceKlass::should_store_fingerprint(bool is_hidden_or_anonymous)
      bool InstanceKlass::has_stored_fingerprint()
      They always return false when built without AOT.

      src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/InstanceKlass.java:
      public static boolean shouldStoreFingerprint()
      public boolean hasStoredFingerprint()
      They return true in some cases regardless of whether JVM was built without AOT or not.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mdoerr Martin Doerr
              Reporter:
              mdoerr Martin Doerr
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: