This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, MPX runtime 1/2] Integrate MPX runtime library


On Tue, 11 Nov 2014, Joseph Myers wrote:

> You have lots of static writable variables.  Are you sure all those 
> variables are handled in a thread-safe way (e.g. only modified before any 
> threads start)?

Another general multi-thread issue for libraries: files should be opened 
with O_CLOEXEC (that's the "e" flag to fopen when using glibc) unless you 
have a clear reason not to do so.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]