https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70456

--- Comment #1 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
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

Reply via email to