Skip to content
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

Increasing sync for i2cpp debugger stack frames (case 1064723) #1020

Merged
1 commit merged into from
Aug 28, 2018

Conversation

ghost
Copy link

@ghost ghost commented Aug 23, 2018

The thread local storage of sequence points and method execution
contexts between IL2CPP and the mono debugger code was only being
synchronized at certain times, mainly when breakpoints were processed.
This could lead to a loss of synchronization after functions are exited
and debugger frame commands accessing invalid stack data. This change
adds synchronization for these data structures right before any managed
method exit, when the method execution context for that method is
destroyed. Also optimizing memory allocations by only allocating when
the stack grows and just reusing the memory otherwise.

The thread local storage of sequence points and method execution
contexts between IL2CPP and the mono debugger code was only being
synchronized at certain times, mainly when breakpoints were processed.
This could lead to a loss of synchronization after functions are exited
and debugger frame commands accessing invalid stack data. This change
adds synchronization for these data structures right before any managed
method exit, when the method execution context for that method is
destroyed. Also optimizing memory allocations by only allocating when
the stack grows and just reusing the memory otherwise.
@ghost ghost requested review from joshpeterson and joncham August 23, 2018 20:17
@ghost ghost merged commit e452eea into unity-master Aug 28, 2018
@ghost ghost deleted the il2cpp-debugger-stack-frames-sync branch August 28, 2018 14:43
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants