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

Unified Diff: src/base/platform/semaphore.h

Issue 1936003002: AIX:Proposal to use kSemaphoreAlignmentMask instead kPointerAlignmentMask (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 | src/base/platform/semaphore.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/platform/semaphore.h
diff --git a/src/base/platform/semaphore.h b/src/base/platform/semaphore.h
index 18700d1ba005f01a77a2fb43f7c6b3219200f382..b01910dfe32ebdb37e03ae6a64e3772b0ee64c14 100644
--- a/src/base/platform/semaphore.h
+++ b/src/base/platform/semaphore.h
@@ -19,6 +19,13 @@
namespace v8 {
namespace base {
+#if V8_OS_AIX
+// On aix sem_t is of type int
+const uintptr_t kSemaphoreAlignmentMask = sizeof(int) - 1;
jochen (gone - plz use gerrit) 2016/05/02 16:15:45 Any reason this is defined in the header?
+#else
+const uintptr_t kSemaphoreAlignmentMask = sizeof(void*) - 1;
+#endif
+
// Forward declarations.
class TimeDelta;
« no previous file with comments | « no previous file | src/base/platform/semaphore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698