------- Comment #18 from fxcoudert at gcc dot gnu dot org 2008-02-07 15:20 ------- (In reply to comment #17)
> This begs a question. Why do we even want locking on internal units? The > string is local to the thread and allocated on the stack most likely. What about the case of two threads writing to the same string (maybe to overlapping parts of the same string)? It's not good programing, but if we support it for files, why not for internal units? I don't see why the string should be local to the thread, and it might not always be allocated on the stack. "Most likely" just doesn't seem good enough :) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35063