6729929: I18N - Taking Heap Dump failed if project path contains multibyte characters
Reviewed-by: dholmes, rbackman
This commit is contained in:
parent
87f3086e13
commit
a5c3cd8ee3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user