Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(913)

Unified Diff: src/profiler/sampler.cc

Issue 1938833002: AIX: use intptr_t to cast a pointer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/profiler/sampler.cc
diff --git a/src/profiler/sampler.cc b/src/profiler/sampler.cc
index 2d3b1283404562b47fdaa1cc8263fc858fd50b2e..646bd27490cfd4f6713b0a3caad8b3241f68530b 100644
--- a/src/profiler/sampler.cc
+++ b/src/profiler/sampler.cc
@@ -733,7 +733,13 @@ class SamplerThread : public base::Thread {
if (SignalHandler::Installed()) {
for (HashMap::Entry *p = thread_id_to_samplers_.Get().Start();
p != NULL; p = thread_id_to_samplers_.Get().Next(p)) {
+#if V8_OS_AIX && V8_TARGET_ARCH_PPC64
+ // on AIX64, cannot cast (void *) to pthread_t which is
+ // of type unsigned int (4bytes)
+ pthread_t thread_id = reinterpret_cast<intptr_t>(p->key);
+#else
pthread_t thread_id = reinterpret_cast<pthread_t>(p->key);
+#endif
pthread_kill(thread_id, SIGPROF);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698