[PATCH] tsan: fix PTRACE_ATTACH handling during stop-the-world
Sergey Matveev
earthdok at google.com
Fri Feb 20 06:24:04 PST 2015
On Fri, Feb 20, 2015 at 1:05 AM, Alexey Samsonov <vonosmas at gmail.com> wrote:
>
> On Thu, Feb 19, 2015 at 5:20 AM, Sergey Matveev <earthdok at google.com> wrote:
>>
>> ================
>> Comment at:
>> lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc:125
>> @@ +124,3 @@
>> + VReport(1, "Waiting on thread %d failed, detaching (errno
>> %d).\n",
>> + tid, wperrno);
>> + internal_ptrace(PTRACE_DETACH, tid, NULL, NULL);
>> ----------------
>> dvyukov wrote:
>> > earthdok wrote:
>> > > dvyukov wrote:
>> > > > earthdok wrote:
>> > > > > indent
>> > > > it is 4 spaces aligned
>> > > > in accordance with the Style
>> > > nope, that's only for those cases where even the first parameter is
>> > > wrapped
>> > > otherwise you align to the first parameter
>> > ... and what if the wrapped argument does not fit onto line if you align
>> > it to the first arg?...
>> > ok, as you wish, done
>> > the style guide instruction that covers this seems to be "follow the
>> > style of existing code"
>> > and what if the wrapped argument does not fit onto line if you align it
>> > to the first arg?
>>
>> Then you wrap at the opening bracket and indent with 4 spaces. It's pretty
>> clear:
>
>
> I think you should just accept what clang-format does.
Clang-format is not a higher authority than the style guide :)
Anyway, clang-format agrees with me.
>
>>
>>
>>
>> http://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Function_Calls
>>
>> > Either write the call all on a single line, wrap the arguments at the
>> > parenthesis, or start the arguments on a new line indented by four spaces
>> > and continue at that 4 space indent. In the absence of other considerations,
>> > use the minimum number of lines, including placing multiple arguments on
>> > each line where appropriate.
>>
>> Basically you can choose between
>>
>> ```
>> foobar(a,
>> b)
>> ```
>>
>> and
>>
>> ```
>> foobar(
>> a, b)
>> ```
>>
>> or
>>
>> ```
>> foobar(
>> a,
>> b)
>> ```
>>
>> But nowhere does it mention the middle ground of
>>
>> ```
>> foobar(a,
>> b)
>> ```
>>
>> http://reviews.llvm.org/D7723
>>
>> EMAIL PREFERENCES
>> http://reviews.llvm.org/settings/panel/emailpreferences/
>>
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
>
>
> --
> Alexey Samsonov
> vonosmas at gmail.com
More information about the llvm-commits
mailing list