comparison src/os_cpu/linux_x86/vm/os_linux_x86.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 9ef47379df20
children 2cb5d5f6d5e5
comparison
equal deleted inserted replaced
10160:ed5a590835a4 10161:746b070f5022
708 int rslt = pthread_getattr_np(pthread_self(), &attr); 708 int rslt = pthread_getattr_np(pthread_self(), &attr);
709 709
710 // JVM needs to know exact stack location, abort if it fails 710 // JVM needs to know exact stack location, abort if it fails
711 if (rslt != 0) { 711 if (rslt != 0) {
712 if (rslt == ENOMEM) { 712 if (rslt == ENOMEM) {
713 vm_exit_out_of_memory(0, "pthread_getattr_np"); 713 vm_exit_out_of_memory(0, OOM_MMAP_ERROR, "pthread_getattr_np");
714 } else { 714 } else {
715 fatal(err_msg("pthread_getattr_np failed with errno = %d", rslt)); 715 fatal(err_msg("pthread_getattr_np failed with errno = %d", rslt));
716 } 716 }
717 } 717 }
718 718