Number of objects to move between a per-thread list and a central list in one shot. We want this to be not too small so we can amortize the lock overhead for accessing the central list. Making it too big may temporarily cause unnecessary memory wastage in the per-thread free list until the scavenger cleans up the list.
| 244 | // it too big may temporarily cause unnecessary memory wastage in the |
| 245 | // per-thread free list until the scavenger cleans up the list. |
| 246 | inline int num_objects_to_move(size_t cl) { |
| 247 | return num_objects_to_move_[cl]; |
| 248 | } |
| 249 | }; |
| 250 | |
| 251 | // Allocates "bytes" worth of memory and returns it. Increments |
no outgoing calls
no test coverage detected