Revert of Check for semaphore alignment on posix platforms. (patchset #1 id:1 of https://codereview.chromium.org/1912923003/ )
Reason for revert: blocks rolling. See https://bugs.chromium.org/p/chromium/issues/detail?id=605349 for more information. This CL only triggers the problem earlier but is not the culprit. The real bug is under investigation by the GC team. Original issue's description: > Check for semaphore alignment on posix platforms. > > BUG=chromium:605349 > LOG=NO > > Committed: https://crrev.com/8d24472acfaf7e67ca20106cb1f405fc0590c849 > Cr-Commit-Position: refs/heads/master@{#35717} TBR=mlippautz@chromium.org,ulan@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=chromium:605349 LOG=N Review URL: https://codereview.chromium.org/1921533002 Cr-Commit-Position: refs/heads/master@{#35755}
This commit is contained in:
parent
c005029aa4
commit
80c73e2cde
@ -74,13 +74,6 @@ bool Semaphore::WaitFor(const TimeDelta& rel_time) {
|
||||
#elif V8_OS_POSIX
|
||||
|
||||
Semaphore::Semaphore(int count) {
|
||||
// The sem_init() does not check for alignment of the native handle.
|
||||
// Unaligned native handle can later cause a failure in semaphore signal.
|
||||
// Check the alignment here to catch the failure earlier.
|
||||
// Context: crbug.com/605349.
|
||||
const uintptr_t kPointerAlignmentMask = sizeof(void*) - 1;
|
||||
CHECK_EQ(
|
||||
0, reinterpret_cast<uintptr_t>(&native_handle_) & kPointerAlignmentMask);
|
||||
DCHECK(count >= 0);
|
||||
#if V8_LIBC_GLIBC
|
||||
// sem_init in glibc prior to 2.1 does not zero out semaphores.
|
||||
|
Loading…
Reference in New Issue
Block a user