Re: fix typo in ethr_aux.c
Sverker Eriksson <[email protected]>
| Newsgroups | gmane.comp.lang.erlang.bugs |
|---|---|
| Message-ID | <[email protected]> |
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 > > _______________________________________________ erlang-bugs mailing list [email protected] http://erlang.org/mailman/listinfo/erlang-bugs