Skip to content

Commit ee1a9ee

Browse files
authored
Fix incorrect handle type count when FEATURE_SIZED_REF_HANDLES is not defined (#107433)
Regression from #107326 - without `FEATURE_SIZED_REF_HANDLES` defined, this was incorrectly passing an array of two handle types - HNDTYPE_STRONG and HNDTYPE_WEAK_SHORT (0) - when promoting objects pointed to by strong handles.
1 parent e166eb6 commit ee1a9ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/gc/objecthandle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ void Ref_TraceNormalRoots(uint32_t condemned, uint32_t maxgen, ScanContext* sc,
11051105

11061106
// promote objects pointed to by strong handles
11071107
// during ephemeral GCs we also want to promote the ones pointed to by sizedref handles.
1108-
uint32_t types[2] = {
1108+
uint32_t types[] = {
11091109
HNDTYPE_STRONG,
11101110
#ifdef FEATURE_SIZED_REF_HANDLES
11111111
HNDTYPE_SIZEDREF

0 commit comments

Comments
 (0)