8210194: [TESTBUG] jvmti_FollowRefObjects.cpp missing initializer for member _jvmtiHeapCallbacks::heap_reference_callback
Reviewed-by: sspitsyn, iignatyev
--- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/FollowReferences/followref001/followref001.cpp Thu Aug 30 09:08:23 2018 -0400
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/FollowReferences/followref001/followref001.cpp Thu Aug 30 08:01:13 2018 -0700
@@ -71,7 +71,7 @@
static const jlong ROOT_OBJECT_TAG = 10;
static const jlong CHAIN_OBJECT_TAG = 100;
-static jvmtiHeapCallbacks heapCallbacks = {};
+static jvmtiHeapCallbacks heapCallbacks;
/* This array has to be up-to-date with the jvmtiHeapReferenceKind enum */
static const char* ref_kind_str[28] = {
--- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/FollowReferences/followref002/followref002.cpp Thu Aug 30 09:08:23 2018 -0400
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/FollowReferences/followref002/followref002.cpp Thu Aug 30 08:01:13 2018 -0700
@@ -69,7 +69,7 @@
static jlong rootObjectTag = 10;
static jlong chainObjectTag = 100;
-static jvmtiHeapCallbacks heapCallbacks = {};
+static jvmtiHeapCallbacks heapCallbacks;
static const char* ref_kind_str[28] = {
"unknown_0",
--- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/FollowReferences/followref003/followref003.cpp Thu Aug 30 09:08:23 2018 -0400
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/FollowReferences/followref003/followref003.cpp Thu Aug 30 08:01:13 2018 -0700
@@ -94,7 +94,7 @@
#define DUMMY_STRING_ARR_SLOT 11
-static jvmtiHeapCallbacks heapCallbacks = {};
+static jvmtiHeapCallbacks heapCallbacks;
static const char* ref_kind_str[28] = {
"unknown_0",
--- a/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp Thu Aug 30 09:08:23 2018 -0400
+++ b/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp Thu Aug 30 08:01:13 2018 -0700
@@ -35,7 +35,7 @@
int g_fakeUserData = 0;
int g_userDataError = 0;
-jvmtiHeapCallbacks g_wrongHeapCallbacks = {};
+jvmtiHeapCallbacks g_wrongHeapCallbacks;
/* This array has to be up-to-date with the jvmtiHeapReferenceKind enum */
const char * const g_refKindStr[28] = {