Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit f4ed491

Browse files
committed
Add JitObjectStackAllocation config option.
1 parent 8780dc6 commit f4ed491

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/jit/jitconfigvalues.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ CONFIG_STRING(JitInlineReplayFile, W("JitInlineReplayFile"))
347347
#endif // defined(DEBUG) || defined(INLINE_DATA)
348348

349349
CONFIG_INTEGER(JitInlinePolicyModel, W("JitInlinePolicyModel"), 0)
350+
CONFIG_INTEGER(JitObjectStackAllocation, W("JitObjectStackAllocation"), 0)
350351

351352
CONFIG_INTEGER(JitEECallTimingInfo, W("JitEECallTimingInfo"), 0)
352353

src/jit/morph.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16733,6 +16733,12 @@ void Compiler::fgMorph()
1673316733
// Transform each GT_ALLOCOBJ node into either an allocation helper call or
1673416734
// local variable allocation on the stack.
1673516735
ObjectAllocator objectAllocator(this); // PHASE_ALLOCATE_OBJECTS
16736+
16737+
if (JitConfig.JitObjectStackAllocation() && !opts.MinOpts() && !opts.compDbgCode)
16738+
{
16739+
objectAllocator.EnableObjectStackAllocation();
16740+
}
16741+
1673616742
objectAllocator.Run();
1673716743

1673816744
/* Add any internal blocks/trees we may need */

0 commit comments

Comments
 (0)