Reviewers: jochen (slow),

Message:
Jochen: could you please take a look at this CL.

Description:
Fix OS::GetCurrentThreadId to work when building Android on Mac.

The Mac version of GetCurrentThreadId should be used when building the host
build of V8 on Android for Mac.

Please review this at https://codereview.chromium.org/799943003/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+1, -1 lines):
  M src/base/platform/platform-posix.cc


Index: src/base/platform/platform-posix.cc
diff --git a/src/base/platform/platform-posix.cc b/src/base/platform/platform-posix.cc index 0b16dfdcc6bae14c943f2253e40674c2edb667d0..c2fa26a9ea9364b8009e7b5d4b2a0b290e06a64b 100644
--- a/src/base/platform/platform-posix.cc
+++ b/src/base/platform/platform-posix.cc
@@ -254,7 +254,7 @@ int OS::GetCurrentProcessId() {


 int OS::GetCurrentThreadId() {
-#if V8_OS_MACOSX
+#if V8_OS_MACOSX || (V8_OS_ANDROID && defined(__APPLE__))
   return static_cast<int>(pthread_mach_thread_np(pthread_self()));
 #elif V8_OS_LINUX
   return static_cast<int>(syscall(__NR_gettid));


--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to