Lines Matching refs:sopts
1688 imalloc_no_sample(static_opts_t *sopts, dynamic_opts_t *dopts, tsd_t *tsd, argument
1695 if (likely(!sopts->slow)) {
1726 arena, sopts->slow);
1730 imalloc_sample(static_opts_t *sopts, dynamic_opts_t *dopts, tsd_t *tsd, argument
1747 ret = imalloc_no_sample(sopts, dopts, tsd, bumped_usize,
1754 ret = imalloc_no_sample(sopts, dopts, tsd, usize, usize, ind);
1803 imalloc_body(static_opts_t *sopts, dynamic_opts_t *dopts, tsd_t *tsd) { argument
1824 if (unlikely(compute_size_with_overflow(sopts->may_overflow, dopts,
1830 if (sopts->bump_empty_alloc) {
1836 if (sopts->assert_nonempty_alloc) {
1840 if (unlikely(dopts->alignment < sopts->min_alignment
1870 if (sopts->slow && unlikely(reentrancy_level > 0)) {
1896 sopts, dopts, tsd, usize, usize, ind);
1903 sopts, dopts, tsd, usize, ind);
1921 allocation = imalloc_no_sample(sopts, dopts, tsd, size, usize,
1940 if (sopts->slow) {
1950 if (unlikely(sopts->slow) && config_xmalloc && unlikely(opt_xmalloc)) {
1951 malloc_write(sopts->oom_string);
1955 if (sopts->slow) {
1961 if (sopts->set_errno_on_error) {
1965 if (sopts->null_out_result_on_error) {
1978 malloc_write(sopts->invalid_alignment_string);
1982 if (sopts->set_errno_on_error) {
1986 if (sopts->slow) {
1992 if (sopts->null_out_result_on_error) {
2001 imalloc(static_opts_t *sopts, dynamic_opts_t *dopts) { argument
2004 malloc_write(sopts->oom_string);
2020 sopts->slow = false;
2021 return imalloc_body(sopts, dopts, tsd);
2023 sopts->slow = true;
2024 return imalloc_body(sopts, dopts, tsd);
2037 static_opts_t sopts; local
2042 static_opts_init(&sopts);
2045 sopts.bump_empty_alloc = true;
2046 sopts.null_out_result_on_error = true;
2047 sopts.set_errno_on_error = true;
2048 sopts.oom_string = "<jemalloc>: Error in malloc(): out of memory\n";
2054 imalloc(&sopts, &dopts);
2065 static_opts_t sopts; local
2071 static_opts_init(&sopts);
2074 sopts.bump_empty_alloc = true;
2075 sopts.min_alignment = sizeof(void *);
2076 sopts.oom_string =
2078 sopts.invalid_alignment_string =
2086 ret = imalloc(&sopts, &dopts);
2100 static_opts_t sopts; local
2106 static_opts_init(&sopts);
2109 sopts.bump_empty_alloc = true;
2110 sopts.null_out_result_on_error = true;
2111 sopts.set_errno_on_error = true;
2112 sopts.min_alignment = 1;
2113 sopts.oom_string =
2115 sopts.invalid_alignment_string =
2123 imalloc(&sopts, &dopts);
2135 static_opts_t sopts; local
2140 static_opts_init(&sopts);
2143 sopts.may_overflow = true;
2144 sopts.bump_empty_alloc = true;
2145 sopts.null_out_result_on_error = true;
2146 sopts.set_errno_on_error = true;
2147 sopts.oom_string = "<jemalloc>: Error in calloc(): out of memory\n";
2154 imalloc(&sopts, &dopts);
2437 static_opts_t sopts; local
2443 static_opts_init(&sopts);
2446 sopts.bump_empty_alloc = true;
2447 sopts.min_alignment = 1;
2448 sopts.oom_string =
2450 sopts.invalid_alignment_string =
2452 sopts.null_out_result_on_error = true;
2459 imalloc(&sopts, &dopts);
2473 static_opts_t sopts; local
2478 static_opts_init(&sopts);
2481 sopts.bump_empty_alloc = true;
2482 sopts.null_out_result_on_error = true;
2483 sopts.min_alignment = PAGE;
2484 sopts.oom_string =
2486 sopts.invalid_alignment_string =
2494 imalloc(&sopts, &dopts);
2567 static_opts_t sopts; local
2572 static_opts_init(&sopts);
2575 sopts.assert_nonempty_alloc = true;
2576 sopts.null_out_result_on_error = true;
2577 sopts.oom_string = "<jemalloc>: Error in mallocx(): out of memory\n";
2604 imalloc(&sopts, &dopts);