-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Porting SuspendAllThreads
from the NativeAOT to CoreCLR.
#101782
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
abddacb
port suspension algo from NativeAOT
VSadov b5091cc
PING_JIT_TIMEOUT gone
VSadov afa8fb6
CatchAtSafePoint is always opportunistic
VSadov 08a90e8
current
VSadov bb4be45
removed RareEnablePreemptiveGC
VSadov ec11b18
cleanup RareDisablePreemptiveGC
VSadov 17a83c6
fix for x86
VSadov e9be64b
factored out Thread::Hijack
VSadov 4ca217d
fix build for non-x64 windows
VSadov fb2c654
assert noone holds TSL into coop mode
VSadov 1fb68ea
activation safety check is always for the current thread
VSadov e5ce033
undo comment
VSadov c26364a
PulseGCMode should not check for CatchAtSafePointOpportunistic
VSadov 1dbd95b
not disabling preempt while holding TSL
VSadov cf19edd
tweak
VSadov ca6e83e
dead assert
VSadov 15acfe2
tweak RareDisablePreemptiveGC
VSadov c1c20f7
RareDisablePreemptiveGC avoid GetSuspensionThread()
VSadov 5c02723
updated Thread::Hijack
VSadov 827d4de
fix typo
VSadov 8b9b7a3
allow coop mode while holding TS lock
VSadov bad07f4
Refactored into SuspendAllThreads/ResumeAllThreads
VSadov c9ad7ff
SetThreadTrapForSuspension
VSadov 96ab9f5
deleted TS_GCSuspendPending
VSadov 48e1c78
tweaks
VSadov 1688024
PR feedback
VSadov 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 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 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 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 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 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 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 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 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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,6 @@ EXTERN __imp__RtlUnwind@16:DWORD | |
ifdef _DEBUG | ||
EXTERN _HelperMethodFrameConfirmState@20:PROC | ||
endif | ||
EXTERN _StubRareEnableWorker@4:PROC | ||
ifdef FEATURE_COMINTEROP | ||
EXTERN _StubRareDisableHRWorker@4:PROC | ||
endif ; FEATURE_COMINTEROP | ||
|
@@ -394,29 +393,6 @@ endif | |
retn 8 | ||
_CallJitEHFinallyHelper@8 ENDP | ||
|
||
;----------------------------------------------------------------------- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We stopped doing thread trapping on transitions from coop in JIT helpers a while ago. |
||
; The out-of-line portion of the code to enable preemptive GC. | ||
; After the work is done, the code jumps back to the "pRejoinPoint" | ||
; which should be emitted right after the inline part is generated. | ||
; | ||
; Assumptions: | ||
; ebx = Thread | ||
; Preserves | ||
; all registers except ecx. | ||
; | ||
;----------------------------------------------------------------------- | ||
_StubRareEnable proc public | ||
push eax | ||
push edx | ||
|
||
push ebx | ||
call _StubRareEnableWorker@4 | ||
|
||
pop edx | ||
pop eax | ||
retn | ||
_StubRareEnable ENDP | ||
|
||
ifdef FEATURE_COMINTEROP | ||
_StubRareDisableHR proc public | ||
push edx | ||
|
This file contains 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was dead code already. Noone called this.