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

Rework dwarf eager loading (follow up to #9792) #9852

Merged
merged 3 commits into from
Oct 26, 2020

Conversation

bcardiff
Copy link
Member

The initialization included in #9792 causes the spec in preview_mt to hang. I was able to reproduce this locally with small programs, but not in a consistent manner.

I moved the load_dwarf call to kernel, which is a better place for it to be. That seems enough to avoid the problem introduced in #9792.

Since load_dwarf needed to be public (yet :nodoc:) I refactored a bit the code to use @@dwarf_loaded only in dwarf.cr and not in elf|mach_o.cr

@bcardiff bcardiff added this to the 1.0.0 milestone Oct 26, 2020
@bcardiff bcardiff merged commit 1f38312 into crystal-lang:master Oct 26, 2020
@bcardiff bcardiff deleted the fix/mt-dwarf-load branch October 26, 2020 17:41
carlhoerberg pushed a commit to carlhoerberg/crystal that referenced this pull request Nov 18, 2020
…lang#9852)

* Make load_dwarf public but :nodoc: and introduce load_dwarf_impl

* Move load_dwarf call to kernel

On preview_mt the specs are hang unless the initialization is changed

* Do not load dwarf on windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants