RFR: 8011661: Insufficient memory message says "malloc" when sometimes it should say "mmap"

Calvin Cheung calvin.cheung at oracle.com
Fri Apr 26 15:32:43 PDT 2013


Problem: needs a way to differentiate the 2 OOM error cases - malloc or mmap

Fix:
Adding an enum parameter to the vm_exit_out_of_memory macro and the 
report_vm_out_of_memory
function so that the caller can indicate whether it's a malloc or mmap 
error.
Main changes are in debug.[cpp | hpp] and vmError.[cpp | hpp].
Other changes are mainly for passing in the additional enum when calling 
vm_exit_out_of_memory.

Test coverage:
     jprt

webrev: http://cr.openjdk.java.net/~ccheung/8011661/webrev/
jbs: https://jbs.oracle.com/bugs/browse/JDK-8011661
bugs.sun.com: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8011661

thanks,
Calvin


More information about the hotspot-dev mailing list