On Wed, 2012-11-07 at 15:08 -0800, Andi Kleen wrote:
> Richard Henderson <r...@redhat.com> writes:
> >
> > Is it ever likely that we'd choose an uninstrumented path for a
> > nested transaction, given that we're already executing the instrumented
> > path for an outer transaction?
> 
> I don't see why not. A small inner transaction may well succeed 
> in HTM, even if the big outer one does not.

It could succeed, but this would require a HyTM scheme: when the
enclosing txn is a SW txn synchronizing with other SW txns, then the
nested HW txn would have to synchronize with those other SW txns too.
So, if the STM has a serialized commit phase or something like that,
then you can run the uninstrumented code path from within HW txns
(because the HyTM part can be done on begin).  But for all HyTMs that do
need instrumentation, it wouldn't work.

Reply via email to