summaryrefslogtreecommitdiffstats
path: root/base/threading/platform_thread_posix.cc
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-18 21:21:09 +0000
committerrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-18 21:21:09 +0000
commit63e668013de9226ba017db40b49ea4528514aa73 (patch)
treede320cfc9fa5f396819570603bc1a144e4e728a9 /base/threading/platform_thread_posix.cc
parent223a93f11d161cd63a6986d8bd81364bae16a600 (diff)
downloadchromium_src-63e668013de9226ba017db40b49ea4528514aa73.zip
chromium_src-63e668013de9226ba017db40b49ea4528514aa73.tar.gz
chromium_src-63e668013de9226ba017db40b49ea4528514aa73.tar.bz2
Revert 118118 - Temporarily revert 117127 for perf analysis.
BUG=110555 TBR=rsesek@chromium.org Review URL: https://chromiumcodereview.appspot.com/9252014 TBR=rsesek@chromium.org Review URL: https://chromiumcodereview.appspot.com/9250014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118152 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/threading/platform_thread_posix.cc')
-rw-r--r--base/threading/platform_thread_posix.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc
index 0196ff2..7eda4e9 100644
--- a/base/threading/platform_thread_posix.cc
+++ b/base/threading/platform_thread_posix.cc
@@ -133,7 +133,9 @@ PlatformThreadId PlatformThread::CurrentId() {
// Pthreads doesn't have the concept of a thread ID, so we have to reach down
// into the kernel.
#if defined(OS_MACOSX)
- return mach_thread_self();
+ mach_port_t port = mach_thread_self();
+ mach_port_deallocate(mach_task_self(), port);
+ return port;
#elif defined(OS_LINUX)
return syscall(__NR_gettid);
#elif defined(OS_ANDROID)