Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp Tue Apr 30 09:17:06 2013 -0400 +++ b/src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp Tue Apr 30 11:56:52 2013 -0700 @@ -178,7 +178,7 @@ // JVM needs to know exact stack location, abort if it fails if (rslt != 0) { if (rslt == ENOMEM) { - vm_exit_out_of_memory(0, "pthread_getattr_np"); + vm_exit_out_of_memory(0, OOM_MMAP_ERROR, "pthread_getattr_np"); } else { fatal(err_msg("pthread_getattr_np failed with errno = %d", rslt)); }