Re: [PATCH] PR libitm/70456: Allocate aligned memory in gtm_thread operator new

2016-04-19 Thread Torvald Riegel
On Sat, 2016-04-02 at 09:25 -0700, H.J. Lu wrote: > On Wed, Mar 30, 2016 at 5:34 AM, H.J. Lu wrote: > > Since GTM::gtm_thread has > > > > gtm_thread *next_thread __attribute__((__aligned__(HW_CACHELINE_SIZE))); > > > > GTM::gtm_thread::operator new should allocate aligned memory. > > > > Tested on

Re: [PATCH] PR libitm/70456: Allocate aligned memory in gtm_thread operator new

2016-04-19 Thread H.J. Lu
On Sat, Apr 2, 2016 at 9:25 AM, H.J. Lu wrote: > On Wed, Mar 30, 2016 at 5:34 AM, H.J. Lu wrote: >> Since GTM::gtm_thread has >> >> gtm_thread *next_thread __attribute__((__aligned__(HW_CACHELINE_SIZE))); >> >> GTM::gtm_thread::operator new should allocate aligned memory. >> >> Tested on Linux/x8

Re: [PATCH] PR libitm/70456: Allocate aligned memory in gtm_thread operator new

2016-04-02 Thread H.J. Lu
On Wed, Mar 30, 2016 at 5:34 AM, H.J. Lu wrote: > Since GTM::gtm_thread has > > gtm_thread *next_thread __attribute__((__aligned__(HW_CACHELINE_SIZE))); > > GTM::gtm_thread::operator new should allocate aligned memory. > > Tested on Linux/x86-64. OK for trunk. > > This patch is better. Tested o

[PATCH] PR libitm/70456: Allocate aligned memory in gtm_thread operator new

2016-03-30 Thread H.J. Lu
Since GTM::gtm_thread has gtm_thread *next_thread __attribute__((__aligned__(HW_CACHELINE_SIZE))); GTM::gtm_thread::operator new should allocate aligned memory. Tested on Linux/x86-64. OK for trunk. H.J. PR libitm/70456 * beginend.cc (GTM::gtm_thread::operator new): Use