memory allocation in native code
843829Aug 27 2007 — edited Aug 28 2007Hello,
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!