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

Improve performance for MemorySegment::fill

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 22, 23
    • core-libs

      The performance of the `MemorySegment::fil` can be improved by replacing the `checkAccess()` method call with calling `checkReadOnly()` instead (as the bounds of the segment itself do not need to be checked).

      Also, smaller segments can be handled directly by Java code rather than transitioning to native code.

            pminborg Per-Ake Minborg
            pminborg Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: