Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
10160:ed5a590835a4 | 10161:746b070f5022 |
---|---|
151 _resize_threshold = (int)(_load_factor * _size); | 151 _resize_threshold = (int)(_load_factor * _size); |
152 _resizing_enabled = true; | 152 _resizing_enabled = true; |
153 size_t s = initial_size * sizeof(JvmtiTagHashmapEntry*); | 153 size_t s = initial_size * sizeof(JvmtiTagHashmapEntry*); |
154 _table = (JvmtiTagHashmapEntry**)os::malloc(s, mtInternal); | 154 _table = (JvmtiTagHashmapEntry**)os::malloc(s, mtInternal); |
155 if (_table == NULL) { | 155 if (_table == NULL) { |
156 vm_exit_out_of_memory(s, "unable to allocate initial hashtable for jvmti object tags"); | 156 vm_exit_out_of_memory(s, OOM_MALLOC_ERROR, |
157 "unable to allocate initial hashtable for jvmti object tags"); | |
157 } | 158 } |
158 for (int i=0; i<initial_size; i++) { | 159 for (int i=0; i<initial_size; i++) { |
159 _table[i] = NULL; | 160 _table[i] = NULL; |
160 } | 161 } |
161 } | 162 } |