diff -r d4c57dc7410b src/hotspot/share/prims/jni.cpp --- a/src/hotspot/share/prims/jni.cpp Tue Apr 20 07:37:00 2021 +0200 +++ b/src/hotspot/share/prims/jni.cpp Tue Apr 20 13:07:31 2021 +0200 @@ -916,7 +916,6 @@ class JNI_ArgumentPusherVaArg : public JNI_ArgumentPusher { - protected: va_list _ap; inline void get_bool() { @@ -953,6 +952,10 @@ set_ap(rap); } + ~JNI_ArgumentPusherVaArg() { + va_end(_ap); + } + // Optimized path if we have the bitvector form of signature void iterate( uint64_t fingerprint ) { if (fingerprint == (uint64_t)CONST64(-1)) {