Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3585)

Issue 4995046: locks required at function boundaries

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by supertri
Modified:
12 years, 7 months ago
Reviewers:
chandlerc
Visibility:
Public.

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -4 lines) Patch
M lib/Analysis/ThreadSafety.cpp View 3 chunks +43 lines, -4 lines 4 comments Download
M test/SemaCXX/warn-thread-safety-analysis.cpp View 1 chunk +10 lines, -0 lines 2 comments Download

Messages

Total messages: 2
chandlerc
http://codereview.appspot.com/4995046/diff/1/lib/Analysis/ThreadSafety.cpp File lib/Analysis/ThreadSafety.cpp (right): http://codereview.appspot.com/4995046/diff/1/lib/Analysis/ThreadSafety.cpp#newcode645 lib/Analysis/ThreadSafety.cpp:645: static SourceLocation getFirstStmtLoc(const CFGBlock *Block) { Why this change? ...
12 years, 7 months ago (2011-09-15 00:44:02 UTC) #1
supertri
12 years, 7 months ago (2011-09-15 17:46:25 UTC) #2
http://codereview.appspot.com/4995046/diff/1/lib/Analysis/ThreadSafety.cpp
File lib/Analysis/ThreadSafety.cpp (right):

http://codereview.appspot.com/4995046/diff/1/lib/Analysis/ThreadSafety.cpp#ne...
lib/Analysis/ThreadSafety.cpp:645: static SourceLocation getFirstStmtLoc(const
CFGBlock *Block) {
On 2011/09/15 00:44:02, chandlerc wrote:
> Why this change? Specifically, why change the name of the function?

Changed back.

http://codereview.appspot.com/4995046/diff/1/lib/Analysis/ThreadSafety.cpp#ne...
lib/Analysis/ThreadSafety.cpp:705: if (I != E && D->hasAttrs()) {
On 2011/09/15 00:44:02, chandlerc wrote:
> Rather than pulling I and E out of the for loop, just check .empty() here?
That
> would seem much nicer. I don't really like having non-loop variables called I
> and E....

Done.

http://codereview.appspot.com/4995046/diff/1/test/SemaCXX/warn-thread-safety-...
File test/SemaCXX/warn-thread-safety-analysis.cpp (right):

http://codereview.appspot.com/4995046/diff/1/test/SemaCXX/warn-thread-safety-...
test/SemaCXX/warn-thread-safety-analysis.cpp:664: void es_fun_10()
__attribute__((exclusive_locks_required(aa_mu)));
On 2011/09/15 00:44:02, chandlerc wrote:
> No errors or other tests? this seems rather lightly exercised...

This code suppresses erroneous errors, but does not produce any additional
errors. I would have written more, but am committing about 10 test cases from
annotalysis that use this feature shortly.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b