6729929: I18N - Taking Heap Dump failed if project path contains multibyte characters

Reviewed-by: dholmes, rbackman
This commit is contained in:
Peter Allwin 2013-04-20 19:02:11 +02:00 committed by Markus Grönlund
parent 87f3086e13
commit a5c3cd8ee3

View File

@ -2126,7 +2126,7 @@ JVM_ENTRY(jint, jmm_DumpHeap0(JNIEnv *env, jstring outputfile, jboolean live))
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);