[PATCH] D32165: Implement suspended thread register count for darwin

Francis Ricci via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 18 12:48:57 PDT 2017


fjricci updated this revision to Diff 95611.
fjricci added a comment.

Use MACHINE_THREAD_STATE_COUNT


https://reviews.llvm.org/D32165

Files:
  lib/sanitizer_common/sanitizer_stoptheworld_mac.cc


Index: lib/sanitizer_common/sanitizer_stoptheworld_mac.cc
===================================================================
--- lib/sanitizer_common/sanitizer_stoptheworld_mac.cc
+++ lib/sanitizer_common/sanitizer_stoptheworld_mac.cc
@@ -88,8 +88,7 @@
 }
 
 uptr SuspendedThreadsListMac::RegisterCount() const {
-  CHECK(0 && "unimplemented");
-  return 0;
+  return MACHINE_THREAD_STATE_COUNT;
 }
 } // namespace __sanitizer
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32165.95611.patch
Type: text/x-patch
Size: 430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170418/4a392f4e/attachment.bin>


More information about the llvm-commits mailing list