tags:

views:

95

answers:

1

that is, could a malloc() asking for 5 mb in the C part fail due to:

  • jvm was run with -Xmx32m and jvm heap is already 30 mb
  • something to do with jvm being 32 bits in a 64 bits windows
+4  A: 

The answer to the the first bullet is "no" - Xmx refers to the Java heap and any native allocations are completely separate.

The answer to the second bullet is "yes" - native allocations are subject to the general process allocation restrictions inherent in the O/S and/or hardware.

Software Monkey