Commit a25236e
[release/11.0-preview2] Revert forwarding activation signal (#124894)
Backport of #124877 to release/11.0-preview2
/cc @janvorli
## Customer Impact
- [x] Customer reported
- [ ] Found internally
The current CheckActivationSafePoint uses thread local storage to
get the current Thread instance. But this function is called from
async signal handler (the activation signal handler) and it is not
allowed to access TLS variables there because the access can allocate
and if the interrupted code was running in an allocation code, it
could crash.
There was no problem with this since .NET 1.0, but a change in the
recent glibc version has broken this. We've got reports of crashes
in this code e.g on recent Ubuntu 25.04 due to this issue.
## Regression
- [ ] Yes
- [x] No
## Testing
CI tests, local manual directed tests
## Risk
Low, the change was in main for the past two months and we haven't seen
any issues related to it. The newly added code is executed very
frequently.
Co-authored-by: Jan Vorlicek <janvorli@microsoft.com>1 parent a92d749 commit a25236e
1 file changed
+13
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | 968 | | |
976 | 969 | | |
977 | | - | |
978 | | - | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
979 | 977 | | |
980 | | - | |
981 | | - | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
982 | 984 | | |
983 | 985 | | |
984 | 986 | | |
| |||
0 commit comments