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!

memory allocation in native code

843829Aug 27 2007 — edited Aug 28 2007
Hello,

I've a basic question, but no answer so far:

My Java program (on Win32 hotspot JVM) uses a native C++ library. When I'm allocating an amount o memory inside this native lib, where is it allocated? Not in the JVM heap i guess?

The problem is that we need to allocate large arrays in native code, but the JVM is lauched with -Xmx1024M or so, and looks like more the -Xmx value increases less memory we have for the native allocations. Am I wrong?

Would be happy to have any reliable information about that!
Thank you!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 25 2007
Added on Aug 27 2007
1 comment
74 views