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

Issue 10867009: platform: fix semaphore on mac os

Created:
8 years, 4 months ago by indutny
Modified:
8 years, 4 months ago
Reviewers:
Erik Corry
Base URL:
gh:v8/v8@master
Visibility:
Public.

Description

platform: fix semaphore on mac os The comment above MacOSSemaphore::Wait() is simply not true :) R=erik.corry@gmail.com

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : added test case #

Patch Set 4 : assertions, fix lint #

Patch Set 5 : the last lint fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -6 lines) Patch
M src/platform-macos.cc View 1 2 3 1 chunk +17 lines, -6 lines 1 comment Download
M test/cctest/test-api.cc View 1 2 3 4 2 chunks +70 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
indutny
8 years, 4 months ago (2012-08-22 12:06:17 UTC) #1
indutny
Added test, changed crashing to asserting, fixed linting.
8 years, 4 months ago (2012-08-22 17:45:42 UTC) #2
Erik Corry
8 years, 4 months ago (2012-08-23 09:23:39 UTC) #3
LGTM, thanks, I will land.

https://chromiumcodereview.appspot.com/10867009/diff/6002/src/platform-macos.cc
File src/platform-macos.cc (right):

https://chromiumcodereview.appspot.com/10867009/diff/6002/src/platform-macos....
src/platform-macos.cc:705: ASSERT(r == KERN_SUCCESS);
I will move this up into the loop and assert that it is either SUCCESS or
ABORTED.  That way it doesn't loop if the assumption is wrong.

Powered by Google App Engine
This is Rietveld 408576698