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

Remove Klass::_prototype_header

XMLWordPrintable

      With JDK-8305895, we added a field _prototype_header in Klass, which encodes that Klass* when compact headers are turned on. The purpose was to simplify the allocation paths, where we can initialize the new object's header with that prototype.
      The prototype can be removed and we can instead encode the Klass* on the allocation paths. This might actually be faster, because we save a load from memory, and we already have the Klass* in a register and only need to do some cheap shifting and masking on it.

            stefank Stefan Karlsson
            rkennke Roman Kennke
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: