Skip to content

Commit 89f4d44

Browse files
committed
8210194: [TESTBUG] jvmti_FollowRefObjects.cpp missing initializer for member _jvmtiHeapCallbacks::heap_reference_callback
Backport-of: 3c135ae
1 parent 898b8de commit 89f4d44

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/FollowReferences/followref001/followref001.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static const jlong CHAIN_CLASS_TAG = 99;
6969
static const jlong ROOT_OBJECT_TAG = 10;
7070
static const jlong CHAIN_OBJECT_TAG = 100;
7171

72-
static jvmtiHeapCallbacks heapCallbacks = {};
72+
static jvmtiHeapCallbacks heapCallbacks;
7373

7474
/* This array has to be up-to-date with the jvmtiHeapReferenceKind enum */
7575
static const char* ref_kind_str[28] = {

test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/FollowReferences/followref002/followref002.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static jlong chainClassTag = 99;
6767
static jlong rootObjectTag = 10;
6868
static jlong chainObjectTag = 100;
6969

70-
static jvmtiHeapCallbacks heapCallbacks = {};
70+
static jvmtiHeapCallbacks heapCallbacks;
7171

7272
static const char* ref_kind_str[28] = {
7373
"unknown_0",

test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/FollowReferences/followref003/followref003.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static jlong chainObjectTag = 100;
9292
#define DUMMY_STRING_ARR_SLOT 11
9393

9494

95-
static jvmtiHeapCallbacks heapCallbacks = {};
95+
static jvmtiHeapCallbacks heapCallbacks;
9696

9797
static const char* ref_kind_str[28] = {
9898
"unknown_0",

test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern "C" {
3333

3434
int g_fakeUserData = 0;
3535
int g_userDataError = 0;
36-
jvmtiHeapCallbacks g_wrongHeapCallbacks = {};
36+
jvmtiHeapCallbacks g_wrongHeapCallbacks;
3737

3838
/* This array has to be up-to-date with the jvmtiHeapReferenceKind enum */
3939
const char * const g_refKindStr[28] = {

0 commit comments

Comments
 (0)