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

XMLWordPrintable

    • b17
    • windows

        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.

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

                Created:
                Updated:
                Resolved: