From ae796a4e1000afb836c1b0a65edf39ab9d2e7ce2 Mon Sep 17 00:00:00 2001 From: Jiangli Zhou Date: Tue, 3 Oct 2023 15:33:48 +0000 Subject: [PATCH] 8316923: Add DEF_STATIC_JNI_OnLoad for librmi Reviewed-by: alanb --- src/java.rmi/share/native/librmi/GC.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/java.rmi/share/native/librmi/GC.c b/src/java.rmi/share/native/librmi/GC.c index 820184bcf46..191cd846ee7 100644 --- a/src/java.rmi/share/native/librmi/GC.c +++ b/src/java.rmi/share/native/librmi/GC.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -25,8 +25,13 @@ #include #include +#include "jni_util.h" #include "sun_rmi_transport_GC.h" +/* + * Declare library specific JNI_Onload entry if static build + */ +DEF_STATIC_JNI_OnLoad JNIEXPORT jlong JNICALL Java_sun_rmi_transport_GC_maxObjectInspectionAge(JNIEnv *env, jclass cls)