This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 1/3] PowerPC: Add the lock elision using HTM

Adhemerval Zanella <> writes:

> This patch adds support for lock elision using ISA 2.07 hardware
> transactional memory instructions for pthread_mutex primitives.
> Similar to s390 version, the for elision logic defined in
> 'force-elision.h' is only enabled if ENABLE_LOCK_ELISION is defined.
> Also, the lock elision code should be able to be built even with
> a compiler that does not provide HTM support with builtins.
> However I have noted the performance is sub-optimal due scheduling
> pressures.
> Tested on powerpc64 and powerpc32.

Did you test it on powerpc64le?  perl is behaving very erroneously:

$ perl -e 'open(F, "echo foo |"); print while (<F>)' | wc -l

Something is causing fork to be reentered repeatedly, at random (the
number of processes varies between runs).


Andreas Schwab, SUSE Labs,
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]