Skip to content

Commit 696d338

Browse files
committed
Explicitly NOMEM if the simdhash add fails due to an out of memory condition
1 parent 88fc90f commit 696d338

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/coreclr/interpreter/stackmap.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ InterpreterStackMap* GetInterpreterStackMap(ICorJitInfo* jitInfo, CORINFO_CLASS_
3535
result = new InterpreterStackMap(jitInfo, classHandle);
3636
dn_simdhash_add_result addResult = dn_simdhash_ptr_ptr_try_add(t_sharedStackMapLookup, classHandle, result);
3737
assert(addResult == DN_SIMDHASH_ADD_INSERTED);
38+
if (addResult == DN_SIMDHASH_OUT_OF_MEMORY)
39+
NOMEM();
3840
}
3941
return result;
4042
}

0 commit comments

Comments
 (0)