changeset 58074:f53f0d0637d8

8239005: [TESTBUG] test/hotspot/jtreg/runtime/StackGuardPages/TestStackGuardPages.java: exeinvoke.c: must initialize static state before calling do_overflow() Reviewed-by: dholmes, clanger
author rrich
date Thu, 13 Feb 2020 16:20:14 +0100
parents efc0da4a10a9
children 9513c13b03f3
files test/hotspot/jtreg/runtime/StackGuardPages/exeinvoke.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/hotspot/jtreg/runtime/StackGuardPages/exeinvoke.c	Fri Feb 14 10:31:34 2020 +0100
+++ b/test/hotspot/jtreg/runtime/StackGuardPages/exeinvoke.c	Thu Feb 13 16:20:14 2020 +0100
@@ -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 @@
 
   (*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();