Skip to content

Commit 65c365f

Browse files
committed
Incorporate changes from latest pejovica review.
1 parent e98f262 commit 65c365f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/cv/CVSymbolSubsectionBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ private void addTypeRecords(TypeEntry typeEntry) {
197197
* @param entry compiled method containing entities whos type records must be added
198198
* @return type index of function type
199199
*/
200-
private int addTypeRecords(@SuppressWarnings("unused") CompiledMethodEntry entry) {
200+
private int addTypeRecords(CompiledMethodEntry entry) {
201201
return cvDebugInfo.getCVTypeSection().addTypeRecords(entry).getSequenceNumber();
202202
}
203203
}

substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/cv/CVTypeRecord.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,8 +1038,8 @@ static final class CVFieldListRecord extends CVTypeRecord {
10381038

10391039
static final int INITIAL_CAPACITY = 10;
10401040

1041-
/* Size includes type field and record length field. */
1042-
private int estimatedSize = Short.BYTES * 2;
1041+
/* Size includes type field but not record length field. */
1042+
private int estimatedSize = CVUtil.align4(Short.BYTES);
10431043

10441044
private final ArrayList<FieldRecord> members = new ArrayList<>(INITIAL_CAPACITY);
10451045

0 commit comments

Comments
 (0)