Skip to content
Permalink
Browse files

8239005: [TESTBUG] test/hotspot/jtreg/runtime/StackGuardPages/TestSta…

…ckGuardPages.java: exeinvoke.c: must initialize static state before calling do_overflow()

Reviewed-by: dholmes, clanger
  • Loading branch information
Richard Reingruber
Richard Reingruber committed Feb 13, 2020
1 parent 52d46c3 commit eaff9918d2b1219a11e719e32c287d1be67aaa75
Showing with 5 additions and 1 deletion.
  1. +5 −1 test/hotspot/jtreg/runtime/StackGuardPages/exeinvoke.c
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2020, 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
@@ -163,6 +163,10 @@ void *run_native_overflow(void *p) {

(*env)->CallStaticVoidMethod (env, class_id, method_id, NULL);

// Initialize statics used in do_overflow
_kp_rec_count = 0;
_rec_count = 0;

set_signal_handler();
if (! setjmp(context)) {
do_overflow();

0 comments on commit eaff991

Please sign in to comment.