Re: [patch] libitm: Fix privatization safety during upgrades to serial mode.

2011-12-23 Thread Richard Henderson
On 12/22/2011 11:28 AM, Torvald Riegel wrote: > libitm: Fix privatization safety during upgrades to serial mode. > > libitm/ > * beginend.cc (GTM::gtm_thread::restart): Add and handle > finish_serial_upgrade parameter. > * libitm.h (GTM::gtm_thread::restart): Adapt

[patch] libitm: Fix privatization safety during upgrades to serial mode.

2011-12-22 Thread Torvald Riegel
During working on the atomics-in-libitm patch, I noticed that during upgrades to serial mode, we were clearing the reader flag of the upgrading transaction too early. This would be fine for just the serial lock but we also use this flag in the quiescence-based privatization safety implementation;