| 1110 | } |
| 1111 | |
| 1112 | static bool |
| 1113 | extent_need_manual_zero(arena_t *arena) { |
| 1114 | /* |
| 1115 | * Need to manually zero the extent on repopulating if either; 1) non |
| 1116 | * default extent hooks installed (in which case the purge semantics may |
| 1117 | * change); or 2) transparent huge pages enabled. |
| 1118 | */ |
| 1119 | return (!arena_has_default_hooks(arena) || |
| 1120 | (opt_thp == thp_mode_always)); |
| 1121 | } |
| 1122 | |
| 1123 | /* |
| 1124 | * Tries to satisfy the given allocation request by reusing one of the extents |
no test coverage detected