8239005: [TESTBUG] test/hotspot/jtreg/runtime/StackGuardPages/TestStackGuardPages.java: exeinvoke.c: must initialize static state before calling do_overflow()

Reviewed-by: dholmes, clanger
This commit is contained in:
Richard Reingruber 2020-02-13 16:20:14 +01:00
parent 52d46c314b
commit eaff9918d2

View File

@ -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();