[PATCH] Add faster HTM fastpath for libitm TSX

Torvald Riegel triegel@redhat.com
Tue Jan 29 13:05:00 GMT 2013


On Thu, 2013-01-24 at 17:45 +0100, Andi Kleen wrote:
> > 
> > > +  uint32_t *__gtm_global_lock;
> > 
> > Same, and rearrange the serial lock's fields (see below).
> 
> My understanding is that C++ makes no guarantees of class layout.
> That is why i ended up not relying on the layout.

gtm_rwlock is a POD type, so you get the guarantees that C would
provide.

Torvald



More information about the Gcc-patches mailing list