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

Intrinsify Unsafe::setMemory

XMLWordPrintable

    • b20

      Unsafe::setMemory is for instance used to zero out native MemorySegments when they are allocated.

      Currently it only has a native implementation in unsafe.cpp, meaning that we do 2 thread state transitions on every call (Java -> native and native -> VM).

      By intrinsifying this method in C2 (as a leaf call), we could avoid both state transitions which should yield significant speedups for small fill sizes.

            sgibbons Scott Gibbons (Inactive)
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: