Skip to content

Commit d6370ab

Browse files
authored
[10.0/preview2] JIT: make array stack disable work in release builds (#113305)
Despite this being a release config setting, it was only impacting checked/debug builds.
1 parent 07b0519 commit d6370ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/jit/objectalloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ inline bool ObjectAllocator::CanAllocateLclVarOnStack(unsigned int lclNu
340340
#ifdef DEBUG
341341
enableBoxedValueClasses = (JitConfig.JitObjectStackAllocationBoxedValueClass() != 0);
342342
enableRefClasses = (JitConfig.JitObjectStackAllocationRefClass() != 0);
343-
enableArrays = (JitConfig.JitObjectStackAllocationArray() != 0);
344343
#endif
344+
enableArrays = (JitConfig.JitObjectStackAllocationArray() != 0);
345345

346346
unsigned classSize = 0;
347347

0 commit comments

Comments
 (0)