Avoids func calls and branches in the common case.
malloc+free throughput per second: ~19323918 to ~27418181.
lock1 from will-it-scale (single-threaded): 2196902 -> 2345506
Paths
| Differential D15736 Authored by mjg on Jun 10 2018, 1:36 PM.
Details
Diff Detail
Event TimelineHerald added a subscriber: imp. · View Herald TranscriptJun 10 2018, 1:36 PM2018-06-10 13:36:34 (UTC+0) Harbormaster completed remote builds in B17135: Diff 43543.Jun 10 2018, 1:36 PM2018-06-10 13:36:36 (UTC+0) Comment Actions The M_ZERO stuff went in quite some time ago. I plan to deal with static one lookup later. I don't think the inlined cache bump matters. But if you insist i can move it to a dedicated routine. Comment Actions Apart from addressing this review request this needs some reworking due to other changes in uma.
Revision Contents
Diff 43543 sys/kern/kern_malloc.c
sys/vm/uma_core.c
sys/vm/uma_dbg.h
|
This comment should just go away entirely, probably... you only need to know whether it's for read or write now.