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

Deoptimization does not preserve larval state for rematerialized objects.

XMLWordPrintable

      - Unsafe.makePrivateBuffer() can allocate a value object in mutable state by setting a larval state flag in its markword.

      - Currently C2 compiler's SafePointScalarObjectNode does not propagate larval state information, thus during de-optimization a newly rematerialized instance does not carry valid larval state and this can cause problems during subsequent Unsafe.put operations by interpreter.

            jbhateja Jatin Bhateja
            jbhateja Jatin Bhateja
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: