|
5 | 5 | # |
6 | 6 | # Inputs (env): |
7 | 7 | # ALLOCATOR system | auto | jemalloc | jemalloc_override | |
8 | | -# mimalloc_v2 | mimalloc_v2_no_thp | mimalloc_v3 | |
9 | | -# mimalloc_v3_no_thp | mimalloc_v3_override |
| 8 | +# mimalloc_v2 | mimalloc_v3 | mimalloc_v3_override, |
| 9 | +# optionally with a "_dup" suffix, which builds the same |
| 10 | +# binary under a second job so the report can show the |
| 11 | +# between-job noise for that allocator. The suffix is |
| 12 | +# recorded but never reaches the feature list. |
10 | 13 | # TOKIO_MULTI_THREAD true | false |
11 | | -# WORKLOADS space-separated subset of "check scrape" |
| 14 | +# WORKLOADS space-separated subset of "check scrape tls" |
12 | 15 | # ALLOC_ENVS ';'-separated run-time tuning variants, each |
13 | 16 | # "name:VAR=VAL[ VAR=VAL...]" or just "default" |
14 | 17 | # PLATFORM_LABEL matrix label, recorded verbatim |
@@ -36,12 +39,15 @@ features="" |
36 | 39 | no_default="--no-default-features" |
37 | 40 | # A "_dup" cell builds the identical binary under a second job so the report can |
38 | 41 | # show the between-job noise for that allocator rather than assume it. Only the |
39 | | -# recorded label differs, so the suffix comes off before feature selection. |
40 | | -case "${ALLOCATOR%_dup}" in |
| 42 | +# recorded label carries the suffix; strip it once, here, and use the stripped |
| 43 | +# name for every feature decision below. Stripping it in the `case` subject |
| 44 | +# alone is not enough - the default branch has to use it too. |
| 45 | +allocator_features="${ALLOCATOR%_dup}" |
| 46 | +case "$allocator_features" in |
41 | 47 | system) ;; |
42 | 48 | auto) no_default="" ;; |
43 | 49 | mimalloc_v3_override) features="mimalloc_v3,mimalloc_override" ;; |
44 | | - *) features="$ALLOCATOR" ;; |
| 50 | + *) features="$allocator_features" ;; |
45 | 51 | esac |
46 | 52 | if [ "$TOKIO_MULTI_THREAD" = "true" ]; then |
47 | 53 | features="${features:+$features,}tokio-multi-thread" |
|
0 commit comments