This is an archive of the discontinued LLVM Phabricator instance.

Implement suspended thread register count for darwin
ClosedPublic

Authored by fjricci on Apr 18 2017, 7:29 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

fjricci created this revision.Apr 18 2017, 7:29 AM

The defines might look a bit messy, but we're going to need them for GetRegistersAndSP anyway, so this seemed like the cleanest way to do things.

kubamracek edited edge metadata.Apr 18 2017, 11:28 AM

Can we also get an implementation of GetRegistersAndSP? It's hard to see where this patch is heading without the implementation of GetRegistersAndSP.

But if there's something blocking GetRegistersAndSP, then this looks okay to me.

lib/sanitizer_common/sanitizer_stoptheworld_mac.cc
16–17 ↗(On Diff #95565)

Btw, do we still need __mips64 here? Darwin certainly doesn' support MIPS...

Can we also get an implementation of GetRegistersAndSP? It's hard to see where this patch is heading without the implementation of GetRegistersAndSP.

But if there's something blocking GetRegistersAndSP, then this looks okay to me.

Uploaded the GetRegisters patch here - D32182

lib/sanitizer_common/sanitizer_stoptheworld_mac.cc
16–17 ↗(On Diff #95565)

I'll put up a patch to get rid of that, not sure why it was added

kubamracek added inline comments.Apr 18 2017, 12:40 PM
lib/sanitizer_common/sanitizer_stoptheworld_mac.cc
51–60 ↗(On Diff #95565)

Can we use MACHINE_THREAD_STATE_COUNT (should be already defined in system headers) instead?

fjricci updated this revision to Diff 95611.Apr 18 2017, 12:48 PM

Use MACHINE_THREAD_STATE_COUNT

alekseyshl accepted this revision.Apr 18 2017, 1:07 PM
This revision is now accepted and ready to land.Apr 18 2017, 1:07 PM
kubamracek accepted this revision.Apr 18 2017, 1:37 PM
This revision was automatically updated to reflect the committed changes.