Re: [patch] libitm: Add multi-lock, write-through TM method.

2012-02-14 Thread Torvald Riegel
On Mon, 2012-02-13 at 14:50 -0800, Richard Henderson wrote: > On 02/13/2012 01:47 PM, Torvald Riegel wrote: > > + // Location-to-orec mapping. Stripes of 16B mapped to 2^19 orecs. > > + static const gtm_word L2O_ORECS = 1 << 19; > > + static const gtm_word L2O_SHIFT = 4; > > Is it just easier

Re: [patch] libitm: Add multi-lock, write-through TM method.

2012-02-13 Thread Richard Henderson
On 02/13/2012 01:47 PM, Torvald Riegel wrote: > + else { Watch the formatting. > + // Location-to-orec mapping. Stripes of 16B mapped to 2^19 orecs. > + static const gtm_word L2O_ORECS = 1 << 19; > + static const gtm_word L2O_SHIFT = 4; Is it just easier to say "16B" or did we really wa

[patch] libitm: Add multi-lock, write-through TM method.

2012-02-13 Thread Torvald Riegel
This patch adds a new TM method, ml_wt, which uses an array of locks with version numbers and runs a write-through algorithm with time-based validations and snapshot time extensions. patch1 adds xcalloc as a helper function for allocations (used in the new TM method). patch2 improves TM method re