Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Implement alloc helpers for Unix - #1360

Merged
jkotas merged 1 commit into
dotnet:masterfrom
jkotas:allocfast-unix
Jun 5, 2016
Merged

jkotas merged 1 commit into
dotnet:masterfrom
jkotas:allocfast-unix

Conversation

@jkotas

@jkotas jkotas commented Jun 3, 2016

Copy link
Copy Markdown
Member

These have to be implemented in assembly for non-portable runtime flavor to make stackcrawling work.

@jkotas

jkotas commented Jun 3, 2016

Copy link
Copy Markdown
Member Author

@janvorli PTLA

mov [rax + OFFSETOF__Object__m_pEEType], rbx
mov [rax + OFFSETOF__Array__m_Length], r12d

.cfi_remember_state

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 please verify that this works as expected using target modules show-unwind -n RhpNewArray under lldb and looking at the eh_frame UnwindPlan? I have experimented with something like that yesterday at other place and it seems that it doesn't have any effect.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, cfi_remember_state does not work as expected. I have tweaked the directives to make them work (verified by checking stacktrace for each instruction under debugger).

@janvorli

janvorli commented Jun 3, 2016

Copy link
Copy Markdown
Member

LGTM

@jkotas

jkotas commented Jun 3, 2016

Copy link
Copy Markdown
Member Author

@dotnet-bot test OSX Release please

@jkotas

jkotas commented Jun 4, 2016

Copy link
Copy Markdown
Member Author

@dotnet-bot test OSX Release please

These helpers have to be implemented in assembly for non-portable runtime flavor to make stackcrawling work.
@jkotas
jkotas merged commit 19cd48a into dotnet:master Jun 5, 2016
@jkotas
jkotas deleted the allocfast-unix branch June 5, 2016 04:54
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.

3 participants