-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionsin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is mergedoptimizationtenet-performancePerformance related issuePerformance related issue
Milestone
Description
If a small object's reference is never stored in heap or static variables, (only stored in local variables), it is temporary, the CLR or JIT should alloc it on stack and free it in time. Thus, GC pressure would be lower. This feature is just like escape analysis technique in JVM.
I've suggested this in Roslyn forum(dotnet/roslyn#2104), but they said I should suggest here.
category:cq
theme:stack-allocation
skill-level:expert
cost:large
benaadams, HFadeel, sirgru, Cassandra-d, m08pvv-zz and 85 moreandre-ss6, xsoheilalizadeh, EduardoLarios, kuskmen, Swoorup and 6 moreandre-ss6, rikimaru0345, cdmihai, vladd, henry701 and 17 more
Metadata
Metadata
Assignees
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionsin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is mergedoptimizationtenet-performancePerformance related issuePerformance related issue