comparison src/os_cpu/linux_sparc/vm/os_linux_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 9058789475af
children 980532a806a5 5e3b6f79d280
comparison
equal deleted inserted replaced
10160:ed5a590835a4 10161:746b070f5022
176 int rslt = pthread_getattr_np(pthread_self(), &attr); 176 int rslt = pthread_getattr_np(pthread_self(), &attr);
177 177
178 // JVM needs to know exact stack location, abort if it fails 178 // JVM needs to know exact stack location, abort if it fails
179 if (rslt != 0) { 179 if (rslt != 0) {
180 if (rslt == ENOMEM) { 180 if (rslt == ENOMEM) {
181 vm_exit_out_of_memory(0, "pthread_getattr_np"); 181 vm_exit_out_of_memory(0, OOM_MMAP_ERROR, "pthread_getattr_np");
182 } else { 182 } else {
183 fatal(err_msg("pthread_getattr_np failed with errno = %d", rslt)); 183 fatal(err_msg("pthread_getattr_np failed with errno = %d", rslt));
184 } 184 }
185 } 185 }
186 186