6729929: I18N - Taking Heap Dump failed if project path contains multibyte characters
authormgronlun
Sat, 20 Apr 2013 19:02:11 +0200
changeset 17030 c91fa0770046
parent 17029 9ff8d7c0ed79
child 17032 61a9e303d989
6729929: I18N - Taking Heap Dump failed if project path contains multibyte characters Reviewed-by: dholmes, rbackman Contributed-by: peter.allwin@oracle.com
hotspot/src/share/vm/services/management.cpp
--- a/hotspot/src/share/vm/services/management.cpp	Sat Apr 20 04:07:08 2013 -0700
+++ b/hotspot/src/share/vm/services/management.cpp	Sat Apr 20 19:02:11 2013 +0200
@@ -2126,7 +2126,7 @@
     THROW_MSG_(vmSymbols::java_lang_NullPointerException(),
                "Output file name cannot be null.", -1);
   }
-  char* name = java_lang_String::as_utf8_string(on);
+  char* name = java_lang_String::as_platform_dependent_str(on, CHECK_(-1));
   if (name == NULL) {
     THROW_MSG_(vmSymbols::java_lang_NullPointerException(),
                "Output file name cannot be null.", -1);