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

Avoid native memory allocation in sun.security.mscapi.PRNG.generateSeed

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b17
    • OS:
      windows

      Backports

        Description

        When requested length > 0 this method first allocates native memory block, then allocated another Java-array of the same size and copies the content.

        Instead, the Java array memory could be manipulated directly, which would avoid extra memory allocation and copying.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                igerasim Ivan Gerasimov
                Reporter:
                igerasim Ivan Gerasimov
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Due:
                  Created:
                  Updated:
                  Resolved: