Bug 158306 - Make it easier to use NoLockingNecessary
Summary: Make it easier to use NoLockingNecessary
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Filip Pizlo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-02 11:09 PDT by Filip Pizlo
Modified: 2016-06-02 12:39 PDT (History)
8 users (show)

See Also:


Attachments
the patch (23.83 KB, patch)
2016-06-02 11:18 PDT, Filip Pizlo
keith_miller: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Pizlo 2016-06-02 11:09:41 PDT
Patch forthcoming.
Comment 1 Filip Pizlo 2016-06-02 11:18:51 PDT
Created attachment 280342 [details]
the patch
Comment 2 WebKit Commit Bot 2016-06-02 11:21:29 PDT
Attachment 280342 [details] did not pass style-queue:


ERROR: Source/WTF/wtf/Locker.h:48:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Keith Miller 2016-06-02 11:37:37 PDT
Comment on attachment 280342 [details]
the patch

r=me. Although, the implicit cast nature of the NoLockingNecessaryTag still terrifies me. I dread the day I see Locker(someIntegralVariableWithANameThatLooksTooCloseToALock)
Comment 4 Filip Pizlo 2016-06-02 11:40:10 PDT
Landed in http://trac.webkit.org/changeset/201605
Comment 5 Filip Pizlo 2016-06-02 11:40:31 PDT
(In reply to comment #3)
> Comment on attachment 280342 [details]
> the patch
> 
> r=me. Although, the implicit cast nature of the NoLockingNecessaryTag still
> terrifies me. I dread the day I see
> Locker(someIntegralVariableWithANameThatLooksTooCloseToALock)

Maybe we can solve that by having an overload of Locker that takes int and asserts?
Comment 6 Keith Miller 2016-06-02 11:46:31 PDT
> Maybe we can solve that by having an overload of Locker that takes int and
> asserts?

That seems like a good idea. rs=me.
Comment 7 Filip Pizlo 2016-06-02 12:20:50 PDT
(In reply to comment #6)
> > Maybe we can solve that by having an overload of Locker that takes int and
> > asserts?
> 
> That seems like a good idea. rs=me.

Landed in http://trac.webkit.org/changeset/201609
Comment 8 Alexey Proskuryakov 2016-06-02 12:23:29 PDT
Can it just be an overload with "= delete"?
Comment 9 Filip Pizlo 2016-06-02 12:24:58 PDT
(In reply to comment #8)
> Can it just be an overload with "= delete"?

Aw snap!  I'll do that.
Comment 10 Filip Pizlo 2016-06-02 12:25:13 PDT
(In reply to comment #9)
> (In reply to comment #8)
> > Can it just be an overload with "= delete"?
> 
> Aw snap!  I'll do that.

RS to do this or do you want to see the patch?
Comment 11 Filip Pizlo 2016-06-02 12:39:16 PDT
(In reply to comment #10)
> (In reply to comment #9)
> > (In reply to comment #8)
> > > Can it just be an overload with "= delete"?
> > 
> > Aw snap!  I'll do that.
> 
> RS to do this or do you want to see the patch?

Saam rubber stamped this in person.  Landed here: http://trac.webkit.org/changeset/201611