7007254: NullPointerException occurs with jvisualvm placed under a dir. including Japanese chars
Summary: use java_lang_String::create_from_platform_dependent_str() instead of java_lang_String::create_from_str() in JvmtiEnv::AddToSystemClassLoaderSearch()
Reviewed-by: dcubed
--- a/hotspot/src/share/vm/prims/jvmtiEnv.cpp Fri Apr 15 09:36:28 2011 -0400
+++ b/hotspot/src/share/vm/prims/jvmtiEnv.cpp Sat Apr 16 11:59:54 2011 +0200
@@ -525,7 +525,7 @@
ObjectLocker ol(loader, THREAD);
// need the path as java.lang.String
- Handle path = java_lang_String::create_from_str(segment, THREAD);
+ Handle path = java_lang_String::create_from_platform_dependent_str(segment, THREAD);
if (HAS_PENDING_EXCEPTION) {
CLEAR_PENDING_EXCEPTION;
return JVMTI_ERROR_INTERNAL;