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

Need faster method to pass large arrays to native code (JNI)

XMLWordPrintable

    • gc
    • x86_64
    • windows_10
    • Not verified

      ADDITIONAL SYSTEM INFORMATION :
      Windows 10 / Server 2019

      A DESCRIPTION OF THE PROBLEM :
      Currently sending large arrays to native code is "copied" which is painfully slow.
      Using a Direct ByteBuffer is not possible because is doesn't support array() and converting all code to use a direct ByteBuffer is painful as well.
      Need either a GC that doesn't do compacting (64bit systems have lots of memory) that allows unlimited pinning or some other way to pass large arrays to JNI without copying it.
      Creating video editing apps in Java without this is too slow.

      Thanks,


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

              Created:
              Updated:
              Resolved: