Mercurial > hg > truffle
diff src/share/vm/prims/jvmtiTagMap.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 | db9981fd3124 |
children | 92ef81e2f571 |
line wrap: on
line diff
--- a/src/share/vm/prims/jvmtiTagMap.cpp Tue Apr 30 09:17:06 2013 -0400 +++ b/src/share/vm/prims/jvmtiTagMap.cpp Tue Apr 30 11:56:52 2013 -0700 @@ -153,7 +153,8 @@ size_t s = initial_size * sizeof(JvmtiTagHashmapEntry*); _table = (JvmtiTagHashmapEntry**)os::malloc(s, mtInternal); if (_table == NULL) { - vm_exit_out_of_memory(s, "unable to allocate initial hashtable for jvmti object tags"); + vm_exit_out_of_memory(s, OOM_MALLOC_ERROR, + "unable to allocate initial hashtable for jvmti object tags"); } for (int i=0; i<initial_size; i++) { _table[i] = NULL;