Refactor profiling code so that arena_prof_ctx_set() receives usize as an argument. This will allow the following: ``` if ((mapbits & CHUNK_MAP_LARGE) == 0) { ``` to be rewritten as: ``` if (usize <= SMALL_MAXCLASS) { ``` The latter avoids reading mapbits from the chunk header under normal circumstances (prof_promote is typically true).
Activity
jasone commentedon Dec 16, 2013
Integrated: 6657693 and 5fbad09. This turned out to be a bit more subtle than anticipated; there remains a case for which mapbits has to be read.