Skip to content

Commit

Permalink
Merge pull request #14006 from keithc-ca/exports
Browse files Browse the repository at this point in the history
Fix link warnings on Windows
  • Loading branch information
dsouzai authored Nov 25, 2021
2 parents bf11aca + 02931b8 commit 0146461
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
11 changes: 3 additions & 8 deletions runtime/compiler/env/VMJ9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9447,7 +9447,7 @@ JIT_HELPER(initialInvokeExactThunkGlue);
JIT_HELPER(_initialInvokeExactThunkGlue);
#endif

JNIEXPORT jlong JNICALL Java_java_lang_invoke_ThunkTuple_initialInvokeExactThunk
jlong JNICALL Java_java_lang_invoke_ThunkTuple_initialInvokeExactThunk
(JNIEnv *env, jclass clazz)
{
#if defined(J9ZOS390)
Expand All @@ -9465,7 +9465,7 @@ JNIEXPORT jlong JNICALL Java_java_lang_invoke_ThunkTuple_initialInvokeExactThunk
* (private interface method, methods in Object) have been adapted away by the java code, so this
* native only ever deals with iTable interface methods.
*/
JNIEXPORT jint JNICALL Java_java_lang_invoke_InterfaceHandle_convertITableIndexToVTableIndex
jint JNICALL Java_java_lang_invoke_InterfaceHandle_convertITableIndexToVTableIndex
(JNIEnv *env, jclass InterfaceMethodHandle, jlong interfaceArg, jint itableIndex, jlong receiverClassArg)
{
J9Class *interfaceClass = (J9Class*)(intptr_t)interfaceArg;
Expand Down Expand Up @@ -9498,12 +9498,7 @@ JNIEXPORT jint JNICALL Java_java_lang_invoke_InterfaceHandle_convertITableIndexT
}


extern "C" {
JNIEXPORT void JNICALL Java_java_lang_invoke_MutableCallSite_invalidate
(JNIEnv *env, jclass MutableCallSite, jlongArray cookieArrayObject);
}

JNIEXPORT void JNICALL Java_java_lang_invoke_MutableCallSite_invalidate
void JNICALL Java_java_lang_invoke_MutableCallSite_invalidate
(JNIEnv *env, jclass MutableCallSite, jlongArray cookieArrayObject)
{
J9VMThread *vmThread = (J9VMThread*)env;
Expand Down
5 changes: 4 additions & 1 deletion runtime/compiler/env/exports.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ extern "C" {
JNIEXPORT jint JNICALL Java_java_lang_invoke_InterfaceHandle_convertITableIndexToVTableIndex
(JNIEnv *, jclass, jlong, jint, jlong);

JNIEXPORT void JNICALL Java_java_lang_invoke_MutableCallSite_invalidate
(JNIEnv *, jclass, jlongArray);

JNIEXPORT jlong JNICALL Java_java_lang_invoke_ThunkTuple_initialInvokeExactThunk
(JNIEnv *, jclass);

#ifdef __cplusplus
}
} /* extern "C" */
#endif

#endif /* EXPORTS_H */

0 comments on commit 0146461

Please sign in to comment.