Mercurial > hg > truffle
comparison src/share/vm/oops/oop.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 | f258c5828eb8 |
children | cd6b3f1a94ff |
comparison
equal
deleted
inserted
replaced
10160:ed5a590835a4 | 10161:746b070f5022 |
---|---|
109 jchar* chars = java_lang_String::as_unicode_string(this, length, THREAD); | 109 jchar* chars = java_lang_String::as_unicode_string(this, length, THREAD); |
110 if (chars != NULL) { | 110 if (chars != NULL) { |
111 // Use alternate hashing algorithm on the string | 111 // Use alternate hashing algorithm on the string |
112 return AltHashing::murmur3_32(seed, chars, length); | 112 return AltHashing::murmur3_32(seed, chars, length); |
113 } else { | 113 } else { |
114 vm_exit_out_of_memory(length, "unable to create Unicode strings for String table rehash"); | 114 vm_exit_out_of_memory(length, OOM_MALLOC_ERROR, "unable to create Unicode strings for String table rehash"); |
115 return 0; | 115 return 0; |
116 } | 116 } |
117 } | 117 } |
118 | 118 |
119 VerifyOopClosure VerifyOopClosure::verify_oop; | 119 VerifyOopClosure VerifyOopClosure::verify_oop; |