Skip to content

Conversation

@BrzVlad
Copy link
Member

@BrzVlad BrzVlad commented Jul 22, 2021

Fixes #51096

@ghost
Copy link

ghost commented Jul 22, 2021

Tagging subscribers to this area: @BrzVlad
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #51096

Author: BrzVlad
Assignees: -
Labels:

area-Codegen-Interpreter-mono

Milestone: -

@BrzVlad
Copy link
Member Author

BrzVlad commented Jul 22, 2021

@thaystg @vargaz It seems we have some duplicated IL offset computation mechanisms in the runtime. During codegen we store iloffset/nativeoffset pairs in a line_number array which then gets saved in the debug info for a method. We also have the IL seq points that serve the same purpose, being saved in the MonoJitMemoryManager->seq_points hashtable. During stack trace computation, we use the IL seq points if we don't have debug information for the method. Is this something we want to refactor ?

BrzVlad added 2 commits July 26, 2021 12:33
Interpreter was generating only sdb seq points for implementing debugger support. Add also il seq points which are used for stack traces when debugging information is not present. We add IL seq points in locations where IL stack is empty, same as JIT.
@BrzVlad BrzVlad force-pushed the fix-interp-seq-points branch from 69e89e0 to 531b2e8 Compare July 26, 2021 09:33
We were disabling some of them all over the place. They shouldn'd be running on mono.
@BrzVlad BrzVlad force-pushed the fix-interp-seq-points branch from 64ba0d8 to 6f01218 Compare August 9, 2021 08:36
@BrzVlad BrzVlad merged commit 3db6ec5 into dotnet:main Aug 9, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fail StackTraceTests.ToString_ShowILOffset on mono interpreter mode

3 participants