Skip to content

Add DoNotUseStackallocInLoopsAnalyzer#3432

Merged
stephentoub merged 1 commit intodotnet:masterfrom
stephentoub:stackallocloops
Mar 27, 2020
Merged

Add DoNotUseStackallocInLoopsAnalyzer#3432
stephentoub merged 1 commit intodotnet:masterfrom
stephentoub:stackallocloops

Conversation

@stephentoub
Copy link
Member

Finds stackallocs used within loops and warns that such stackallocs should be moved out of the loop.

Fixes dotnet/runtime#33782
cc: @mavasani, @sharwell, @bartonjs, @jeffhandley

@stephentoub stephentoub requested a review from a team as a code owner March 26, 2020 02:48
@codecov
Copy link

codecov bot commented Mar 26, 2020

Codecov Report

Merging #3432 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           master    #3432    +/-   ##
========================================
  Coverage   95.26%   95.27%            
========================================
  Files        1002     1004     +2     
  Lines      230289   230499   +210     
  Branches    14875    14882     +7     
========================================
+ Hits       219387   219597   +210     
  Misses       9255     9255            
  Partials     1647     1647            

Finds stackallocs used within loops and warns that such stackallocs should be moved out of the loop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do not use stackalloc inside of a loop

3 participants