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

Zeroing elimination optimization for allocation followed by Unsafe.copyMemory

XMLWordPrintable

    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      Currently array zeroing elimination optimization only happens when a large array allocation is followed by System.arraycopy().

      It would be great to have the same optimization for allocations followed by Unsafe.copyMemory() as well. This is a massive performance improvement for operations like array allocation followed by direct ByteBuffer's bulk get. This can also discourage projects hacking into jdk.internal.misc.Unsafe.allocateUninitializedArray().


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: