This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/61333] potential target specific performance issue with libgomp
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 28 May 2014 00:18:03 +0000
- Subject: [Bug libgomp/61333] potential target specific performance issue with libgomp
- Auto-submitted: auto-generated
- References: <bug-61333-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61333
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The reason why GCC on linux is better is because it uses the futex syscall to
have better locking (lower overhead). See config/linux/{mutex,lock}.c.
While on Darwin, it directly calls into pthread_mutex calls.