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] libitm: Fix race condition in dispatch choice at transaction begin.


On 02/13/2012 03:03 PM, Torvald Riegel wrote:
> -// The default TM method used when starting a new transaction.
> -static GTM::abi_dispatch* default_dispatch = 0;
> +// The default TM method used when starting a new transaction.  Initialized
> +// in number_of_threads_changed() below.
> +static std::atomic<GTM::abi_dispatch*> default_dispatch;

I see nothing but memory_order_relaxed uses of default_dispatch?


r~


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