Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Bring a few jithelpers to new unwind plan - #123307

#123307
Merged
janvorli merged 21 commits into
dotnet:maindotnet/runtime:mainfrom
am11:feature/deterministic-unwindingam11/runtime:feature/deterministic-unwindingCopy head branch name to clipboard
Jan 22, 2026
Merged

Bring a few jithelpers to new unwind plan#123307
janvorli merged 21 commits into
dotnet:maindotnet/runtime:mainfrom
am11:feature/deterministic-unwindingam11/runtime:feature/deterministic-unwindingCopy head branch name to clipboard

Conversation

@am11

@am11 am11 commented Jan 17, 2026

Copy link
Copy Markdown
Member
  • OSR and writebarriers to new deterministic unwinding plan (no Rtl* and PAL_VirtualUnwind* stuff).
  • Delete UnwindAndContinueResumeAfterCatch, which seems unused; can be brought back with new plan based on the use-case / contextual info (need to double-check with @janvorli).

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Jan 17, 2026

@jkoritzinsky jkoritzinsky left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add calls to __asan_no_return on all the paths that don't return and don't go through RtlRestoreContext any more?

@am11

am11 commented Jan 17, 2026

Copy link
Copy Markdown
Member Author

Can you add calls to __asan_no_return on all the paths that don't return and don't go through RtlRestoreContext any more?

They go through ClrRestoreNonvolatileContext, which has __asan_handle_no_return()at the entry point before any of the non-returning branches.

@am11
am11 marked this pull request as ready for review January 18, 2026 14:03
@am11
am11 requested a review from janvorli January 18, 2026 14:04
@janvorli

Copy link
Copy Markdown
Member
  • Delete UnwindAndContinueResumeAfterCatch, which seems unused; can be brought back with new plan based on the use-case / contextual info (need to double-check with @janvorli).

I've forgotten to remove it when I moved the functionality into the InterpreterCodeManager::ResumeAfterCatch.

Comment thread src/coreclr/vm/excep.cpp Outdated
Comment thread src/coreclr/vm/threads.cpp
Comment thread src/coreclr/vm/jithelpers.cpp
Comment thread src/coreclr/vm/excep.cpp
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@am11

am11 commented Jan 20, 2026

Copy link
Copy Markdown
Member Author

Failures seem to be unrelated.

linux*: tracing test missing some user-event (#122430)
osx-arm64: some msbuild task issue: This task can only be used on completed jobs.

@mdh1418

mdh1418 commented Jan 21, 2026

Copy link
Copy Markdown
Member

The userevent test crashes are #123438
The userevent test failure is #123442
Edit: there are two separate failures, one crash and one real failure

@am11

am11 commented Jan 22, 2026

Copy link
Copy Markdown
Member Author

@janvorli, @jkotas, PTAL. I will remove VirtualUnwindToFirstManagedCallFrame in the next PR (along with few remainging usages). We can visit EH interop for QCalls separately; opened #123482.

Comment thread src/coreclr/pal/inc/unixasmmacrosarm64.inc Outdated
Comment thread src/coreclr/vm/arm64/asmhelpers.asm
Comment thread src/coreclr/vm/arm64/asmhelpers.S
Comment thread src/coreclr/vm/arm64/asmmacros.h Outdated

@janvorli janvorli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@janvorli
janvorli merged commit 18acc2d into dotnet:main Jan 22, 2026
100 checks passed
jkotas added a commit that referenced this pull request Jan 28, 2026
jkotas added a commit that referenced this pull request Jan 28, 2026
jkotas added a commit that referenced this pull request Jan 28, 2026
jkotas added a commit to jkotas/runtime that referenced this pull request Jan 28, 2026
jkotas added a commit that referenced this pull request Jan 28, 2026
…plan (#123307)" (#123715)

Backport of #123696 to release/11.0-preview1

/cc @janvorli 

## Customer Impact

- [ ] Customer reported
- [x] Found internally

Very frequent intermittent runtime crashes caused by buggy CPU context
manipulations.

## Regression

- [x] Yes
- [ ] No

Regression introduced by #123307, merged on Thu Jan 22, 2026.

## Testing

Default CI run.

## Risk

Low, clean revert of the offending PR.
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-VM-coreclr community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.