[llvm-dev] Race condition in raw_ostream
Friedman, Eli via llvm-dev
llvm-dev at lists.llvm.org
Wed Dec 7 10:59:41 PST 2016
On 12/7/2016 10:27 AM, Viacheslav Nikolaev via llvm-dev wrote:
> > I believe it’ll always forward directly to
> raw_fd_ostream::write_impl(), which is calling the libc ::write().
>
> Do you mean raw_fd_ostream somehow overrides the operator<< the code
> for which I extracted?
> I cannot see if that is so. And I really saw it didn't albeit in a
> very old master.
dbgs() is unbuffered, so the condition "Size > (size_t)(OutBufEnd -
OutBufCur)" is always true.
-Eli
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161207/f5488ee4/attachment.html>
More information about the llvm-dev
mailing list