Skip to content

Commit 1b6ae20

Browse files
author
Matias Saavedra Silva
committed
8357576: FieldInfo::_index is not initialized by the constructor
Reviewed-by: coleenp, dholmes
1 parent daab7b5 commit 1b6ae20

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/hotspot/share/oops/fieldInfo.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -137,7 +137,8 @@ class FieldInfo {
137137

138138
public:
139139

140-
FieldInfo() : _name_index(0),
140+
FieldInfo() : _index(0),
141+
_name_index(0),
141142
_signature_index(0),
142143
_offset(0),
143144
_access_flags(AccessFlags(0)),
@@ -147,6 +148,7 @@ class FieldInfo {
147148
_contention_group(0) { }
148149

149150
FieldInfo(AccessFlags access_flags, u2 name_index, u2 signature_index, u2 initval_index, FieldInfo::FieldFlags fflags) :
151+
_index(0),
150152
_name_index(name_index),
151153
_signature_index(signature_index),
152154
_offset(0),

0 commit comments

Comments
 (0)