[erlang-bugs] fix typo in ethr_aux.c
Sverker Eriksson
sverker.eriksson@REDACTED
Wed Jun 4 11:40:22 CEST 2014
Thank you. Will be included in 17.1.
/Sverker, Erlang/OTP
On 06/04/2014 03:12 AM, xyf wrote:
> Hi,
>
>
> It seems there is a typo in file ethr_aux.c, function ts_event_pool(int size, ethr_ts_event **endpp) tries to
> allocate memory at cache line boundary, but the code wrongly detects it, please see attachments,
> further, you only needs to allocate extra cache_line_size -1 bytes but not full cache line, because most bytes
> you should skip is cache_line_size - 1, patch file ethr_aux.c.diff2 fixed it.
>
>
> Regards,
> Yifeng Xu
>
>
More information about the erlang-bugs
mailing list