comparison src/os_cpu/solaris_sparc/vm/os_solaris_sparc.cpp @ 10161:746b070f5022

8011661: Insufficient memory message says "malloc" when sometimes it should say "mmap" Reviewed-by: coleenp, zgu, hseigel
author ccheung
date Tue, 30 Apr 2013 11:56:52 -0700
parents d2f8c38e543d
children f2110083203d
comparison
equal deleted inserted replaced
10160:ed5a590835a4 10161:746b070f5022
589 589
590 // Determine which sort of error to throw. Out of swap may signal 590 // Determine which sort of error to throw. Out of swap may signal
591 // on the thread stack, which could get a mapping error when touched. 591 // on the thread stack, which could get a mapping error when touched.
592 address addr = (address) info->si_addr; 592 address addr = (address) info->si_addr;
593 if (sig == SIGBUS && info->si_code == BUS_OBJERR && info->si_errno == ENOMEM) { 593 if (sig == SIGBUS && info->si_code == BUS_OBJERR && info->si_errno == ENOMEM) {
594 vm_exit_out_of_memory(0, "Out of swap space to map in thread stack."); 594 vm_exit_out_of_memory(0, OOM_MMAP_ERROR, "Out of swap space to map in thread stack.");
595 } 595 }
596 596
597 VMError err(t, sig, pc, info, ucVoid); 597 VMError err(t, sig, pc, info, ucVoid);
598 err.report_and_die(); 598 err.report_and_die();
599 599