[lkml]   [2019]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] Convert struct pid count to refcount_t
On Thu, 4 Apr 2019, Joel Fernandes wrote:

> FWIW, thought to mention (feel free ignore the suggestion if its
> meaningless): If there is any chance that the outcome can be better
> outputted, like r1=X; x=1; Where X stands for the result of a data race, that
> would be lovely. I don't know much about herd internals (yet) to say if the
> suggestion makes sense but as a user, it would certainly help reduce
> confusion.

I don't think that is feasible. For one thing, according to the C
Standard, in the presence of a data race a program is allowed to do
anything at all. There's no point trying to display all possible
outcomes of an execution!

If we adopted the proposal that certain kinds of data races only result
in undefined values, things would be a little better. It's possible
that the herd program could be changed to support undefined values.
At present, however, it does not.

Alan Stern

 \ /
  Last update: 2019-04-04 21:10    [W:0.090 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site