diff src/share/vm/classfile/javaClasses.hpp @ 10155:f258c5828eb8

8011773: Some tests on Interned String crashed JVM with OOM Summary: Instead of terminating the VM, throw OutOfMemoryError exceptions. Reviewed-by: coleenp, dholmes
author hseigel
date Mon, 29 Apr 2013 16:13:57 -0400
parents 6337ca4dcad8
children 6bd680e9ea35 7ee0d5c53c78
line wrap: on
line diff
--- a/src/share/vm/classfile/javaClasses.hpp	Fri Apr 26 08:40:24 2013 -0700
+++ b/src/share/vm/classfile/javaClasses.hpp	Mon Apr 29 16:13:57 2013 -0400
@@ -153,7 +153,7 @@
   static char*  as_utf8_string(oop java_string, char* buf, int buflen);
   static char*  as_utf8_string(oop java_string, int start, int len);
   static char*  as_platform_dependent_str(Handle java_string, TRAPS);
-  static jchar* as_unicode_string(oop java_string, int& length);
+  static jchar* as_unicode_string(oop java_string, int& length, TRAPS);
   // produce an ascii string with all other values quoted using \u####
   static char*  as_quoted_ascii(oop java_string);