commit 423e4b674968252fbda648fc8857a4520d9e30e8 Author: Torvald Riegel Date: Mon Feb 20 16:22:58 2012 +0100 libitm: Put gl_wt global lock on separate cache line. libitm/ * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline. diff --git a/libitm/method-gl.cc b/libitm/method-gl.cc index 02865fb..01347e5 100644 --- a/libitm/method-gl.cc +++ b/libitm/method-gl.cc @@ -41,7 +41,8 @@ struct gl_mg : public method_group static gtm_word clear_locked(gtm_word l) { return l & ~LOCK_BIT; } // The global ownership record. - atomic orec; + atomic orec __attribute__((aligned(HW_CACHELINE_SIZE))); + char tailpadding[HW_CACHELINE_SIZE - sizeof(atomic)]; virtual void init() { @@ -52,7 +53,6 @@ struct gl_mg : public method_group virtual void fini() { } }; -// TODO cacheline padding static gl_mg o_gl_mg;