Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SetByteArrayRegion Behavior

843829Sep 15 2006 — edited Sep 18 2006
I was wondering if someone could help me understand this better...

I have a large amount of memory generated in a C++ application that I want to make available to my JVM. I'm currently using SetByteArrayRegion() to get the data into my Java object, however I believe that this is making a copy of the data, rather than referencing the shared memory from the C++ application.

Is there a way to simply pass a shared pointer in to the JVM and use it as a byte[]? When I've tried that, I end up with access violations from the JVM.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 16 2006
Added on Sep 15 2006
2 comments
2,340 views