Allocate memory on cache line if requested
commit901cf1e23d8ebd0ec65e4091153717b0699bc78c
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Apr 2016 17:01:11 +0000 (19 17:01 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Apr 2016 17:01:11 +0000 (19 17:01 +0000)
tree3273b0d938e451bbc5bab2642961a56fc6ba064b
parent46c5738f20730ad786046890ac4186ee23fb3a80
Allocate memory on cache line if requested

Since GTM::gtm_thread has

gtm_thread *next_thread __attribute__((__aligned__(HW_CACHELINE_SIZE)));

GTM::gtm_thread::operator new () calls xmalloc with separate_cl == true.
xmalloc must return memory on cache line in this case.

PR libitm/70456
* util.cc (xmalloc): Use posix_memalign to allocate memory on
on cache line if requested.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235211 138bc75d-0d04-0410-961f-82ee72b054a4
libitm/ChangeLog
libitm/util.cc