r235211 - in /trunk/libitm: ChangeLog util.cc
hjl@gcc.gnu.org
hjl@gcc.gnu.org
Tue Apr 19 17:01:00 GMT 2016
Author: hjl
Date: Tue Apr 19 17:01:11 2016
New Revision: 235211
URL: https://gcc.gnu.org/viewcvs?rev=235211&root=gcc&view=rev
Log:
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.
Modified:
trunk/libitm/ChangeLog
trunk/libitm/util.cc
More information about the Gcc-cvs
mailing list