- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5.2k
          Save and restore Thread.CurrentThread._synchronizationContext for synchronous runtime async calls
          #117725
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
            jakobbotsch
  merged 30 commits into
  dotnet:main
from
jakobbotsch:restore-sync-context-field
  
      
      
   
  Jul 24, 2025 
      
    
  
     Merged
                    
  
    Save and restore Thread.CurrentThread._synchronizationContext for synchronous runtime async calls
  
  #117725
                      Changes from all commits
      Commits
    
    
            Show all changes
          
          
            30 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      e7f430a
              
                WIP
              
              
                jakobbotsch 3b85c95
              
                JIT: Preparatory refactoring to support multiple defs per single node
              
              
                jakobbotsch fba620a
              
                Mitigate some TP diffs
              
              
                jakobbotsch 3939f24
              
                Nit
              
              
                jakobbotsch 2e151fe
              
                Merge branch 'multiple-defs-per-node' into restore-sync-context-field
              
              
                jakobbotsch 5fec55f
              
                WIP
              
              
                jakobbotsch b9483e7
              
                Attempt at jump threading optimization
              
              
                jakobbotsch 8301152
              
                Drop jump threading opt for now
              
              
                jakobbotsch 4a88fe8
              
                Run jit-format
              
              
                jakobbotsch c2b3e88
              
                Clean up
              
              
                jakobbotsch f9e62e1
              
                Fix SPMI
              
              
                jakobbotsch 41158a3
              
                Merge branch 'main' of github.com:dotnet/runtime into restore-sync-co…
              
              
                jakobbotsch 576d138
              
                Fix build
              
              
                jakobbotsch 39549be
              
                JIT: Fix unique successors in `BBswtDesc` in runtime async
              
              
                jakobbotsch a38902b
              
                Clean up
              
              
                jakobbotsch f91aa6a
              
                Expand test
              
              
                jakobbotsch c786545
              
                Nit
              
              
                jakobbotsch aa31bfb
              
                Fix release build
              
              
                jakobbotsch 9e3a686
              
                Fix dangling pointer bug
              
              
                jakobbotsch c78ca39
              
                Update JIT-EE GUID
              
              
                jakobbotsch 24cd099
              
                Redisable runtime async
              
              
                jakobbotsch f40c255
              
                Require AsyncSuspendedIndicator to be present when HasSuspensionIndic…
              
              
                jakobbotsch 2c073ab
              
                Update async comments
              
              
                jakobbotsch 0741517
              
                Assert NumPosts
              
              
                jakobbotsch 8066afb
              
                Add another test that we capture the sync context from before the call
              
              
                jakobbotsch ddd7584
              
                Use sync context from before call as continuation context
              
              
                jakobbotsch ce2f834
              
                Reset continuation context handling for tailcalls:
              
              
                jakobbotsch 0405154
              
                Add some more comments
              
              
                jakobbotsch b1329a7
              
                Run jit-format
              
              
                jakobbotsch 6510e37
              
                Make SyncContext parameter the first one
              
              
                jakobbotsch File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.