| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 1 | #define JEMALLOC_HUGE_C_ |
| Jason Evans | 376b152 | 2010-02-11 14:45:59 -0800 | [diff] [blame] | 2 | #include "jemalloc/internal/jemalloc_internal.h" |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 3 | |
| 4 | /******************************************************************************/ |
| 5 | /* Data. */ |
| 6 | |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 7 | uint64_t huge_nmalloc; |
| 8 | uint64_t huge_ndalloc; |
| 9 | size_t huge_allocated; |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 10 | |
| 11 | malloc_mutex_t huge_mtx; |
| 12 | |
| 13 | /******************************************************************************/ |
| 14 | |
| 15 | /* Tree of chunks that are stand-alone huge allocations. */ |
| 16 | static extent_tree_t huge; |
| 17 | |
| 18 | void * |
| aravind | 59113bc | 2014-05-05 15:16:56 -0700 | [diff] [blame^] | 19 | huge_malloc(arena_t *arena, size_t size, bool zero, dss_prec_t dss_prec) |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 20 | { |
| Mike Hommey | eae2690 | 2012-04-10 19:50:33 +0200 | [diff] [blame] | 21 | |
| aravind | 59113bc | 2014-05-05 15:16:56 -0700 | [diff] [blame^] | 22 | return (huge_palloc(arena, size, chunksize, zero, dss_prec)); |
| Mike Hommey | eae2690 | 2012-04-10 19:50:33 +0200 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | void * |
| aravind | 59113bc | 2014-05-05 15:16:56 -0700 | [diff] [blame^] | 26 | huge_palloc(arena_t *arena, size_t size, size_t alignment, bool zero, |
| 27 | dss_prec_t dss_prec) |
| Mike Hommey | eae2690 | 2012-04-10 19:50:33 +0200 | [diff] [blame] | 28 | { |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 29 | void *ret; |
| 30 | size_t csize; |
| 31 | extent_node_t *node; |
| Jason Evans | 7ad54c1 | 2012-04-21 16:04:51 -0700 | [diff] [blame] | 32 | bool is_zeroed; |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 33 | |
| 34 | /* Allocate one or more contiguous chunks for this request. */ |
| 35 | |
| 36 | csize = CHUNK_CEILING(size); |
| 37 | if (csize == 0) { |
| 38 | /* size is large enough to cause size_t wrap-around. */ |
| 39 | return (NULL); |
| 40 | } |
| 41 | |
| 42 | /* Allocate an extent node with which to track the chunk. */ |
| 43 | node = base_node_alloc(); |
| 44 | if (node == NULL) |
| 45 | return (NULL); |
| 46 | |
| Jason Evans | 7ad54c1 | 2012-04-21 16:04:51 -0700 | [diff] [blame] | 47 | /* |
| 48 | * Copy zero into is_zeroed and pass the copy to chunk_alloc(), so that |
| 49 | * it is possible to make correct junk/zero fill decisions below. |
| 50 | */ |
| 51 | is_zeroed = zero; |
| aravind | 59113bc | 2014-05-05 15:16:56 -0700 | [diff] [blame^] | 52 | ret = chunk_alloc(arena, csize, alignment, false, &is_zeroed, dss_prec); |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 53 | if (ret == NULL) { |
| 54 | base_node_dealloc(node); |
| 55 | return (NULL); |
| 56 | } |
| 57 | |
| 58 | /* Insert node into huge. */ |
| 59 | node->addr = ret; |
| 60 | node->size = csize; |
| aravind | 59113bc | 2014-05-05 15:16:56 -0700 | [diff] [blame^] | 61 | node->arena = arena; |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 62 | |
| 63 | malloc_mutex_lock(&huge_mtx); |
| 64 | extent_tree_ad_insert(&huge, node); |
| Jason Evans | 7372b15 | 2012-02-10 20:22:09 -0800 | [diff] [blame] | 65 | if (config_stats) { |
| 66 | stats_cactive_add(csize); |
| 67 | huge_nmalloc++; |
| 68 | huge_allocated += csize; |
| 69 | } |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 70 | malloc_mutex_unlock(&huge_mtx); |
| 71 | |
| Jason Evans | 7372b15 | 2012-02-10 20:22:09 -0800 | [diff] [blame] | 72 | if (config_fill && zero == false) { |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 73 | if (opt_junk) |
| 74 | memset(ret, 0xa5, csize); |
| Jason Evans | 7ad54c1 | 2012-04-21 16:04:51 -0700 | [diff] [blame] | 75 | else if (opt_zero && is_zeroed == false) |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 76 | memset(ret, 0, csize); |
| 77 | } |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 78 | |
| 79 | return (ret); |
| 80 | } |
| 81 | |
| Jason Evans | b2c3166 | 2014-01-12 15:05:44 -0800 | [diff] [blame] | 82 | bool |
| Jason Evans | 8e3c3c6 | 2010-09-17 15:46:18 -0700 | [diff] [blame] | 83 | huge_ralloc_no_move(void *ptr, size_t oldsize, size_t size, size_t extra) |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 84 | { |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 85 | |
| Jason Evans | 8e3c3c6 | 2010-09-17 15:46:18 -0700 | [diff] [blame] | 86 | /* |
| 87 | * Avoid moving the allocation if the size class can be left the same. |
| 88 | */ |
| 89 | if (oldsize > arena_maxclass |
| 90 | && CHUNK_CEILING(oldsize) >= CHUNK_CEILING(size) |
| 91 | && CHUNK_CEILING(oldsize) <= CHUNK_CEILING(size+extra)) { |
| 92 | assert(CHUNK_CEILING(oldsize) == oldsize); |
| Jason Evans | b2c3166 | 2014-01-12 15:05:44 -0800 | [diff] [blame] | 93 | return (false); |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 94 | } |
| 95 | |
| Jason Evans | 8e3c3c6 | 2010-09-17 15:46:18 -0700 | [diff] [blame] | 96 | /* Reallocation would require a move. */ |
| Jason Evans | b2c3166 | 2014-01-12 15:05:44 -0800 | [diff] [blame] | 97 | return (true); |
| Jason Evans | 8e3c3c6 | 2010-09-17 15:46:18 -0700 | [diff] [blame] | 98 | } |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 99 | |
| Jason Evans | 8e3c3c6 | 2010-09-17 15:46:18 -0700 | [diff] [blame] | 100 | void * |
| aravind | 59113bc | 2014-05-05 15:16:56 -0700 | [diff] [blame^] | 101 | huge_ralloc(arena_t *arena, void *ptr, size_t oldsize, size_t size, |
| 102 | size_t extra, size_t alignment, bool zero, bool try_tcache_dalloc, |
| 103 | dss_prec_t dss_prec) |
| Jason Evans | 8e3c3c6 | 2010-09-17 15:46:18 -0700 | [diff] [blame] | 104 | { |
| 105 | void *ret; |
| 106 | size_t copysize; |
| 107 | |
| 108 | /* Try to avoid moving the allocation. */ |
| Jason Evans | b2c3166 | 2014-01-12 15:05:44 -0800 | [diff] [blame] | 109 | if (huge_ralloc_no_move(ptr, oldsize, size, extra) == false) |
| 110 | return (ptr); |
| Jason Evans | 8e3c3c6 | 2010-09-17 15:46:18 -0700 | [diff] [blame] | 111 | |
| 112 | /* |
| 113 | * size and oldsize are different enough that we need to use a |
| 114 | * different size class. In that case, fall back to allocating new |
| 115 | * space and copying. |
| 116 | */ |
| Jason Evans | 31bfb3e | 2011-01-31 19:58:22 -0800 | [diff] [blame] | 117 | if (alignment > chunksize) |
| aravind | 59113bc | 2014-05-05 15:16:56 -0700 | [diff] [blame^] | 118 | ret = huge_palloc(arena, size + extra, alignment, zero, dss_prec); |
| Jason Evans | 8e3c3c6 | 2010-09-17 15:46:18 -0700 | [diff] [blame] | 119 | else |
| aravind | 59113bc | 2014-05-05 15:16:56 -0700 | [diff] [blame^] | 120 | ret = huge_malloc(arena, size + extra, zero, dss_prec); |
| Jason Evans | 8e3c3c6 | 2010-09-17 15:46:18 -0700 | [diff] [blame] | 121 | |
| 122 | if (ret == NULL) { |
| 123 | if (extra == 0) |
| 124 | return (NULL); |
| 125 | /* Try again, this time without extra. */ |
| Jason Evans | 31bfb3e | 2011-01-31 19:58:22 -0800 | [diff] [blame] | 126 | if (alignment > chunksize) |
| aravind | 59113bc | 2014-05-05 15:16:56 -0700 | [diff] [blame^] | 127 | ret = huge_palloc(arena, size, alignment, zero, dss_prec); |
| Jason Evans | 8e3c3c6 | 2010-09-17 15:46:18 -0700 | [diff] [blame] | 128 | else |
| aravind | 59113bc | 2014-05-05 15:16:56 -0700 | [diff] [blame^] | 129 | ret = huge_malloc(arena, size, zero, dss_prec); |
| Jason Evans | 8e3c3c6 | 2010-09-17 15:46:18 -0700 | [diff] [blame] | 130 | |
| 131 | if (ret == NULL) |
| 132 | return (NULL); |
| 133 | } |
| 134 | |
| 135 | /* |
| 136 | * Copy at most size bytes (not size+extra), since the caller has no |
| 137 | * expectation that the extra bytes will be reliably preserved. |
| 138 | */ |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 139 | copysize = (size < oldsize) ? size : oldsize; |
| Jason Evans | cfdc8cf | 2010-11-30 16:50:58 -0800 | [diff] [blame] | 140 | |
| Jason Evans | 2e671ff | 2012-05-09 16:12:00 -0700 | [diff] [blame] | 141 | #ifdef JEMALLOC_MREMAP |
| Jason Evans | cfdc8cf | 2010-11-30 16:50:58 -0800 | [diff] [blame] | 142 | /* |
| 143 | * Use mremap(2) if this is a huge-->huge reallocation, and neither the |
| Jason Evans | 4162627 | 2012-02-13 10:56:17 -0800 | [diff] [blame] | 144 | * source nor the destination are in dss. |
| Jason Evans | cfdc8cf | 2010-11-30 16:50:58 -0800 | [diff] [blame] | 145 | */ |
| Jason Evans | 4d434ad | 2014-04-15 12:09:48 -0700 | [diff] [blame] | 146 | if (oldsize >= chunksize && (have_dss == false || (chunk_in_dss(ptr) |
| Jason Evans | 4162627 | 2012-02-13 10:56:17 -0800 | [diff] [blame] | 147 | == false && chunk_in_dss(ret) == false))) { |
| Jason Evans | cfdc8cf | 2010-11-30 16:50:58 -0800 | [diff] [blame] | 148 | size_t newsize = huge_salloc(ret); |
| 149 | |
| Jason Evans | fa351d9 | 2011-11-09 11:55:19 -0800 | [diff] [blame] | 150 | /* |
| 151 | * Remove ptr from the tree of huge allocations before |
| 152 | * performing the remap operation, in order to avoid the |
| 153 | * possibility of another thread acquiring that mapping before |
| 154 | * this one removes it from the tree. |
| 155 | */ |
| 156 | huge_dalloc(ptr, false); |
| Jason Evans | cfdc8cf | 2010-11-30 16:50:58 -0800 | [diff] [blame] | 157 | if (mremap(ptr, oldsize, newsize, MREMAP_MAYMOVE|MREMAP_FIXED, |
| 158 | ret) == MAP_FAILED) { |
| 159 | /* |
| 160 | * Assuming no chunk management bugs in the allocator, |
| 161 | * the only documented way an error can occur here is |
| 162 | * if the application changed the map type for a |
| 163 | * portion of the old allocation. This is firmly in |
| 164 | * undefined behavior territory, so write a diagnostic |
| 165 | * message, and optionally abort. |
| 166 | */ |
| 167 | char buf[BUFERROR_BUF]; |
| 168 | |
| Jason Evans | 2a83ed0 | 2013-12-08 20:52:21 -0800 | [diff] [blame] | 169 | buferror(get_errno(), buf, sizeof(buf)); |
| Jason Evans | d81e4bd | 2012-03-06 14:57:45 -0800 | [diff] [blame] | 170 | malloc_printf("<jemalloc>: Error in mremap(): %s\n", |
| 171 | buf); |
| Jason Evans | cfdc8cf | 2010-11-30 16:50:58 -0800 | [diff] [blame] | 172 | if (opt_abort) |
| 173 | abort(); |
| 174 | memcpy(ret, ptr, copysize); |
| Jason Evans | 12a4887 | 2011-11-11 14:41:59 -0800 | [diff] [blame] | 175 | chunk_dealloc_mmap(ptr, oldsize); |
| Jason Evans | 940fdfd | 2014-02-25 11:58:50 -0800 | [diff] [blame] | 176 | } else if (config_fill && zero == false && opt_junk && oldsize |
| 177 | < newsize) { |
| 178 | /* |
| 179 | * mremap(2) clobbers the original mapping, so |
| 180 | * junk/zero filling is not preserved. There is no |
| 181 | * need to zero fill here, since any trailing |
| 182 | * uninititialized memory is demand-zeroed by the |
| 183 | * kernel, but junk filling must be redone. |
| 184 | */ |
| 185 | memset(ret + oldsize, 0xa5, newsize - oldsize); |
| Jason Evans | fa351d9 | 2011-11-09 11:55:19 -0800 | [diff] [blame] | 186 | } |
| Jason Evans | cfdc8cf | 2010-11-30 16:50:58 -0800 | [diff] [blame] | 187 | } else |
| 188 | #endif |
| 189 | { |
| 190 | memcpy(ret, ptr, copysize); |
| Jason Evans | d82a5e6 | 2013-12-12 22:35:52 -0800 | [diff] [blame] | 191 | iqalloct(ptr, try_tcache_dalloc); |
| Jason Evans | cfdc8cf | 2010-11-30 16:50:58 -0800 | [diff] [blame] | 192 | } |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 193 | return (ret); |
| 194 | } |
| 195 | |
| Jason Evans | 6b694c4 | 2014-01-07 16:47:56 -0800 | [diff] [blame] | 196 | #ifdef JEMALLOC_JET |
| 197 | #undef huge_dalloc_junk |
| 198 | #define huge_dalloc_junk JEMALLOC_N(huge_dalloc_junk_impl) |
| 199 | #endif |
| 200 | static void |
| 201 | huge_dalloc_junk(void *ptr, size_t usize) |
| 202 | { |
| 203 | |
| Jason Evans | 4d434ad | 2014-04-15 12:09:48 -0700 | [diff] [blame] | 204 | if (config_fill && have_dss && opt_junk) { |
| Jason Evans | 6b694c4 | 2014-01-07 16:47:56 -0800 | [diff] [blame] | 205 | /* |
| 206 | * Only bother junk filling if the chunk isn't about to be |
| 207 | * unmapped. |
| 208 | */ |
| Jason Evans | 4d434ad | 2014-04-15 12:09:48 -0700 | [diff] [blame] | 209 | if (config_munmap == false || (have_dss && chunk_in_dss(ptr))) |
| Jason Evans | 6b694c4 | 2014-01-07 16:47:56 -0800 | [diff] [blame] | 210 | memset(ptr, 0x5a, usize); |
| 211 | } |
| 212 | } |
| 213 | #ifdef JEMALLOC_JET |
| 214 | #undef huge_dalloc_junk |
| 215 | #define huge_dalloc_junk JEMALLOC_N(huge_dalloc_junk) |
| 216 | huge_dalloc_junk_t *huge_dalloc_junk = JEMALLOC_N(huge_dalloc_junk_impl); |
| 217 | #endif |
| 218 | |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 219 | void |
| Jason Evans | cfdc8cf | 2010-11-30 16:50:58 -0800 | [diff] [blame] | 220 | huge_dalloc(void *ptr, bool unmap) |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 221 | { |
| 222 | extent_node_t *node, key; |
| 223 | |
| 224 | malloc_mutex_lock(&huge_mtx); |
| 225 | |
| 226 | /* Extract from tree of huge allocations. */ |
| 227 | key.addr = ptr; |
| 228 | node = extent_tree_ad_search(&huge, &key); |
| 229 | assert(node != NULL); |
| 230 | assert(node->addr == ptr); |
| 231 | extent_tree_ad_remove(&huge, node); |
| 232 | |
| Jason Evans | 7372b15 | 2012-02-10 20:22:09 -0800 | [diff] [blame] | 233 | if (config_stats) { |
| 234 | stats_cactive_sub(node->size); |
| 235 | huge_ndalloc++; |
| 236 | huge_allocated -= node->size; |
| 237 | } |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 238 | |
| 239 | malloc_mutex_unlock(&huge_mtx); |
| 240 | |
| Jason Evans | 6b694c4 | 2014-01-07 16:47:56 -0800 | [diff] [blame] | 241 | if (unmap) |
| 242 | huge_dalloc_junk(node->addr, node->size); |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 243 | |
| aravind | 59113bc | 2014-05-05 15:16:56 -0700 | [diff] [blame^] | 244 | chunk_dealloc(node->arena, node->addr, node->size, unmap); |
| Jason Evans | 12a4887 | 2011-11-11 14:41:59 -0800 | [diff] [blame] | 245 | |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 246 | base_node_dealloc(node); |
| 247 | } |
| 248 | |
| 249 | size_t |
| 250 | huge_salloc(const void *ptr) |
| 251 | { |
| 252 | size_t ret; |
| 253 | extent_node_t *node, key; |
| 254 | |
| 255 | malloc_mutex_lock(&huge_mtx); |
| 256 | |
| 257 | /* Extract from tree of huge allocations. */ |
| 258 | key.addr = __DECONST(void *, ptr); |
| 259 | node = extent_tree_ad_search(&huge, &key); |
| 260 | assert(node != NULL); |
| 261 | |
| 262 | ret = node->size; |
| 263 | |
| 264 | malloc_mutex_unlock(&huge_mtx); |
| 265 | |
| 266 | return (ret); |
| 267 | } |
| 268 | |
| Max Wang | fbb3102 | 2014-03-27 14:46:00 -0700 | [diff] [blame] | 269 | dss_prec_t |
| 270 | huge_dss_prec_get(arena_t *arena) |
| 271 | { |
| 272 | |
| 273 | return (arena_dss_prec_get(choose_arena(arena))); |
| 274 | } |
| 275 | |
| Jason Evans | 5065156 | 2010-04-13 16:13:54 -0700 | [diff] [blame] | 276 | prof_ctx_t * |
| 277 | huge_prof_ctx_get(const void *ptr) |
| Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 278 | { |
| Jason Evans | 5065156 | 2010-04-13 16:13:54 -0700 | [diff] [blame] | 279 | prof_ctx_t *ret; |
| Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 280 | extent_node_t *node, key; |
| 281 | |
| 282 | malloc_mutex_lock(&huge_mtx); |
| 283 | |
| 284 | /* Extract from tree of huge allocations. */ |
| 285 | key.addr = __DECONST(void *, ptr); |
| 286 | node = extent_tree_ad_search(&huge, &key); |
| 287 | assert(node != NULL); |
| 288 | |
| Jason Evans | 5065156 | 2010-04-13 16:13:54 -0700 | [diff] [blame] | 289 | ret = node->prof_ctx; |
| Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 290 | |
| 291 | malloc_mutex_unlock(&huge_mtx); |
| 292 | |
| 293 | return (ret); |
| 294 | } |
| 295 | |
| 296 | void |
| Jason Evans | 5065156 | 2010-04-13 16:13:54 -0700 | [diff] [blame] | 297 | huge_prof_ctx_set(const void *ptr, prof_ctx_t *ctx) |
| Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 298 | { |
| 299 | extent_node_t *node, key; |
| 300 | |
| 301 | malloc_mutex_lock(&huge_mtx); |
| 302 | |
| 303 | /* Extract from tree of huge allocations. */ |
| 304 | key.addr = __DECONST(void *, ptr); |
| 305 | node = extent_tree_ad_search(&huge, &key); |
| 306 | assert(node != NULL); |
| 307 | |
| Jason Evans | 5065156 | 2010-04-13 16:13:54 -0700 | [diff] [blame] | 308 | node->prof_ctx = ctx; |
| Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 309 | |
| 310 | malloc_mutex_unlock(&huge_mtx); |
| 311 | } |
| Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 312 | |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 313 | bool |
| 314 | huge_boot(void) |
| 315 | { |
| 316 | |
| 317 | /* Initialize chunks data. */ |
| 318 | if (malloc_mutex_init(&huge_mtx)) |
| 319 | return (true); |
| 320 | extent_tree_ad_new(&huge); |
| 321 | |
| Jason Evans | 7372b15 | 2012-02-10 20:22:09 -0800 | [diff] [blame] | 322 | if (config_stats) { |
| 323 | huge_nmalloc = 0; |
| 324 | huge_ndalloc = 0; |
| 325 | huge_allocated = 0; |
| 326 | } |
| Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 327 | |
| 328 | return (false); |
| 329 | } |
| Jason Evans | 4e2e3dd | 2012-03-13 16:31:41 -0700 | [diff] [blame] | 330 | |
| 331 | void |
| 332 | huge_prefork(void) |
| 333 | { |
| 334 | |
| 335 | malloc_mutex_prefork(&huge_mtx); |
| 336 | } |
| 337 | |
| 338 | void |
| 339 | huge_postfork_parent(void) |
| 340 | { |
| 341 | |
| 342 | malloc_mutex_postfork_parent(&huge_mtx); |
| 343 | } |
| 344 | |
| 345 | void |
| 346 | huge_postfork_child(void) |
| 347 | { |
| 348 | |
| 349 | malloc_mutex_postfork_child(&huge_mtx); |
| 350 | } |