diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2016-04-19 17:01:11 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2016-04-19 10:01:11 -0700 |
commit | 831698b8f7e479506b2f7156ce54fe95b7126c1c (patch) | |
tree | 3273b0d938e451bbc5bab2642961a56fc6ba064b /gcc | |
parent | d855ad89cbf9f70c1f2cd1e0eea7be4e08f769d8 (diff) | |
download | gcc-831698b8f7e479506b2f7156ce54fe95b7126c1c.zip gcc-831698b8f7e479506b2f7156ce54fe95b7126c1c.tar.gz gcc-831698b8f7e479506b2f7156ce54fe95b7126c1c.tar.bz2 |
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.
From-SVN: r235211
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions