Lines Matching defs:sopts
2385 imalloc_no_sample(static_opts_t *sopts, dynamic_opts_t *dopts, tsd_t *tsd,
2389 sopts->slow, /* is_alloc */ true);
2403 arena, sopts->slow);
2407 imalloc_sample(static_opts_t *sopts, dynamic_opts_t *dopts, tsd_t *tsd,
2426 ret = imalloc_no_sample(sopts, dopts, tsd, bumped_usize,
2433 ret = imalloc_no_sample(sopts, dopts, tsd, usize, usize, ind);
2483 imalloc_body(static_opts_t *sopts, dynamic_opts_t *dopts, tsd_t *tsd) {
2502 if (unlikely(compute_size_with_overflow(sopts->may_overflow, dopts,
2507 if (unlikely(dopts->alignment < sopts->min_alignment
2513 dopts->zero = zero_get(dopts->zero, sopts->slow);
2515 sopts->bump_empty_aligned_alloc)) {
2520 if (sopts->assert_nonempty_alloc) {
2531 if (sopts->slow && unlikely(reentrancy_level > 0)) {
2561 sopts, dopts, tsd, usize, usize, ind);
2564 sopts, dopts, tsd, usize, ind);
2577 allocation = imalloc_no_sample(sopts, dopts, tsd, size, usize,
2596 if (config_fill && sopts->slow && !dopts->zero
2601 if (sopts->slow) {
2611 if (unlikely(sopts->slow) && config_xmalloc && unlikely(opt_xmalloc)) {
2612 malloc_write(sopts->oom_string);
2616 if (sopts->slow) {
2622 if (sopts->set_errno_on_error) {
2626 if (sopts->null_out_result_on_error) {
2639 malloc_write(sopts->invalid_alignment_string);
2643 if (sopts->set_errno_on_error) {
2647 if (sopts->slow) {
2653 if (sopts->null_out_result_on_error) {
2661 imalloc_init_check(static_opts_t *sopts, dynamic_opts_t *dopts) {
2664 malloc_write(sopts->oom_string);
2679 imalloc(static_opts_t *sopts, dynamic_opts_t *dopts) {
2680 if (tsd_get_allocates() && !imalloc_init_check(sopts, dopts)) {
2690 sopts->slow = false;
2691 return imalloc_body(sopts, dopts, tsd);
2693 if (!tsd_get_allocates() && !imalloc_init_check(sopts, dopts)) {
2697 sopts->slow = true;
2698 return imalloc_body(sopts, dopts, tsd);
2706 static_opts_t sopts;
2715 static_opts_init(&sopts);
2718 sopts.null_out_result_on_error = true;
2719 sopts.set_errno_on_error = true;
2720 sopts.oom_string = "<jemalloc>: Error in malloc(): out of memory\n";
2726 imalloc(&sopts, &dopts);
2729 * the check on tsd_fast that sets sopts.slow.
2731 if (sopts.slow) {
2757 static_opts_t sopts;
2763 static_opts_init(&sopts);
2766 sopts.bump_empty_aligned_alloc = true;
2767 sopts.min_alignment = sizeof(void *);
2768 sopts.oom_string =
2770 sopts.invalid_alignment_string =
2778 ret = imalloc(&sopts, &dopts);
2779 if (sopts.slow) {
2798 static_opts_t sopts;
2804 static_opts_init(&sopts);
2807 sopts.bump_empty_aligned_alloc = true;
2808 sopts.null_out_result_on_error = true;
2809 sopts.set_errno_on_error = true;
2810 sopts.min_alignment = 1;
2811 sopts.oom_string =
2813 sopts.invalid_alignment_string =
2821 imalloc(&sopts, &dopts);
2822 if (sopts.slow) {
2838 static_opts_t sopts;
2843 static_opts_init(&sopts);
2846 sopts.may_overflow = true;
2847 sopts.null_out_result_on_error = true;
2848 sopts.set_errno_on_error = true;
2849 sopts.oom_string = "<jemalloc>: Error in calloc(): out of memory\n";
2856 imalloc(&sopts, &dopts);
2857 if (sopts.slow) {
3186 static_opts_t sopts;
3192 static_opts_init(&sopts);
3195 sopts.min_alignment = 1;
3196 sopts.oom_string =
3198 sopts.invalid_alignment_string =
3200 sopts.null_out_result_on_error = true;
3207 imalloc(&sopts, &dopts);
3208 if (sopts.slow) {
3226 static_opts_t sopts;
3231 static_opts_init(&sopts);
3234 sopts.null_out_result_on_error = true;
3235 sopts.min_alignment = PAGE;
3236 sopts.oom_string =
3238 sopts.invalid_alignment_string =
3246 imalloc(&sopts, &dopts);
3247 if (sopts.slow) {
3367 static_opts_t sopts;
3372 static_opts_init(&sopts);
3375 sopts.assert_nonempty_alloc = true;
3376 sopts.null_out_result_on_error = true;
3377 sopts.oom_string = "<jemalloc>: Error in mallocx(): out of memory\n";
3378 sopts.usize = true;
3390 imalloc(&sopts, &dopts);
3406 static_opts_t sopts;
3411 static_opts_init(&sopts);
3414 sopts.assert_nonempty_alloc = true;
3415 sopts.null_out_result_on_error = true;
3416 sopts.oom_string = "<jemalloc>: Error in mallocx(): out of memory\n";
3428 imalloc(&sopts, &dopts);
3429 if (sopts.slow) {
3642 static_opts_t sopts;
3645 static_opts_init(&sopts);
3648 sopts.null_out_result_on_error = true;
3649 sopts.set_errno_on_error = true;
3650 sopts.oom_string =
3657 imalloc(&sopts, &dopts);
3658 if (sopts.slow) {