This is an archive of the discontinued LLVM Phabricator instance.

[libunwind] Remove old keymgr related logic
ClosedPublic

Authored by ldionne on Jul 27 2020, 10:03 AM.

Details

Reviewers
kledzik
mstorsjo
Group Reviewers
Restricted Project
Commits
rG145acacaea1d: [libunwind] Remove old keymgr related logic
Summary

keymgr used to be used on MacOSX <= 10.6, however we don't build libunwind
from scratch for such old systems anymore. Hence, this code isn't useful
anymore.

Diff Detail

Event Timeline

ldionne created this revision.Jul 27 2020, 10:03 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 27 2020, 10:03 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript

Can I get someone from the libunwind review group to vet this change?

mstorsjo accepted this revision.Jul 27 2020, 1:03 PM
mstorsjo added a subscriber: mstorsjo.

Sure, I guess this is fine, 10.6 is rather old at this point...

This revision is now accepted and ready to land.Jul 27 2020, 1:03 PM
This revision was automatically updated to reflect the committed changes.
vtjnash added a subscriber: vtjnash.Sep 1 2020, 9:42 AM

I'm glad to see this is gone. I was just about to file a bug report that this code used to incur a deadlock risk when unw_step was used from a signal handler since macOS 10.9.0 on x86_64, since Apple had removed the other side of this code circa keymgr-28, so it now had been attempting to call malloc. (I'd observed this deadlock occur in testing, and implemented a work around for it downstream, in https://github.com/JuliaLang/julia/pull/37101/commits/fad04d39d592d8e0fcbfba439e8157f582bbc850#diff-86a37833b03dbe7f0874e30469cb1d46R93-R102)

I'm glad to see this is gone. I was just about to file a bug report that this code used to incur a deadlock risk when unw_step was used from a signal handler since macOS 10.9.0 on x86_64, since Apple had removed the other side of this code circa keymgr-28, so it now had been attempting to call malloc. (I'd observed this deadlock occur in testing, and implemented a work around for it downstream, in https://github.com/JuliaLang/julia/pull/37101/commits/fad04d39d592d8e0fcbfba439e8157f582bbc850#diff-86a37833b03dbe7f0874e30469cb1d46R93-R102)

Yay for removing old cruft! :)