We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4169d96 commit ae1eb28Copy full SHA for ae1eb28
src/hotspot/share/prims/jni.cpp
@@ -870,7 +870,6 @@ class JNI_ArgumentPusher : public SignatureIterator {
870
871
872
class JNI_ArgumentPusherVaArg : public JNI_ArgumentPusher {
873
- protected:
874
va_list _ap;
875
876
void set_ap(va_list rap) {
@@ -906,6 +905,10 @@ class JNI_ArgumentPusherVaArg : public JNI_ArgumentPusher {
906
905
set_ap(rap);
907
}
908
+ ~JNI_ArgumentPusherVaArg() {
909
+ va_end(_ap);
910
+ }
911
+
912
virtual void push_arguments_on(JavaCallArguments* arguments) {
913
_arguments = arguments;
914
do_parameters_on(this);
0 commit comments