src/java.base/share/native/libjava/jni_util.c
changeset 49557 7b00ac6c11ab
parent 49123 d8057fc6fffc
child 50527 83fd54252ee4
--- a/src/java.base/share/native/libjava/jni_util.c	Tue Apr 10 16:16:34 2018 +0200
+++ b/src/java.base/share/native/libjava/jni_util.c	Tue Apr 10 10:49:17 2018 -0400
@@ -774,8 +774,10 @@
     return newSizedStringJava(env, str, len);
 }
 
-/* Initialize the fast encoding from the encoding name. */
-void
+/* Initialize the fast encoding from the encoding name.
+ * Export InitializeEncoding so that the VM can initialize it if required.
+ */
+JNIEXPORT void
 InitializeEncoding(JNIEnv *env, const char *encname)
 {
     jclass strClazz = NULL;