Bug 128409

Summary: Unify JSLock implementation for iOS and non-iOS ports.
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: JavaScriptCoreAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: fpizlo, ggaren, mhahnenberg, mmirman, msaboff, oliver
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
the patch.
ggaren: review-
patch 2: just there part that makes everyone do drop/grab locks the iOS way. msaboff: review+

Description Mark Lam 2014-02-07 15:54:34 PST
Patch coming.  Details will in the ChangeLog in the patch.
Comment 1 Mark Lam 2014-02-07 17:12:28 PST
Created attachment 223522 [details]
the patch.
Comment 2 Mark Hahnenberg 2014-02-07 17:13:47 PST
Comment on attachment 223522 [details]
the patch.

We don't need a special case for dropAllLocks() now that we're on the C stack. You might be able to just make dropAllLocksUnconditionally be the only dropAllLocks.
Comment 3 Mark Lam 2014-02-07 17:14:38 PST
Comment on attachment 223522 [details]
the patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=223522&action=review

> Source/JavaScriptCore/ChangeLog:12
> +        In the process of switching to iOS implementation, I compared the

typo: to "the" iOS implementation.  Will fix.

> Source/JavaScriptCore/ChangeLog:14
> +        implementation has a bug in dropAllLocks() and dropAllLocksUnconditionally().().

Redundant "().".  Will fix.
Comment 4 Mark Lam 2014-02-07 17:15:59 PST
Comment on attachment 223522 [details]
the patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=223522&action=review

> Source/JavaScriptCore/ChangeLog:16
> +        The bug is that they do not clear our m_vm->stackPointerAtVMEntry and

typo: our ==> out.

> Source/JavaScriptCore/ChangeLog:18
> +        JSLock::unlock() to dropAllLocks() and dropAllLocksUnconditionally().

Missing ")" after "JSLock::unlock()".  Will fix.
Comment 5 Geoffrey Garen 2014-02-07 17:25:35 PST
Comment on attachment 223522 [details]
the patch.

Split out the bug fix, please.
Comment 6 Mark Lam 2014-02-07 18:20:06 PST
Created attachment 223534 [details]
patch 2: just there part that makes everyone do drop/grab locks the iOS way.
Comment 7 Michael Saboff 2014-02-07 18:38:08 PST
Comment on attachment 223534 [details]
patch 2: just there part that makes everyone do drop/grab locks the iOS way.

r=me
Comment 8 Mark Lam 2014-02-07 18:47:46 PST
Thanks.  Landed in r163685: <http://trac.webkit.org/r163685>.