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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.