Mercurial > hg > graal-jvmci-8
diff src/os_cpu/linux_zero/vm/os_linux_zero.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 | f34d701e952e |
children | c54a3122f9c8 |
line wrap: on
line diff
--- a/src/os_cpu/linux_zero/vm/os_linux_zero.cpp Tue Apr 30 09:17:06 2013 -0400 +++ b/src/os_cpu/linux_zero/vm/os_linux_zero.cpp Tue Apr 30 11:56:52 2013 -0700 @@ -313,7 +313,7 @@ int res = pthread_getattr_np(pthread_self(), &attr); if (res != 0) { if (res == 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", res));