Skip to content

#3313 step 2: full-clone allocator census (CPython, curl 8.17/8.18) -- does memory_alloc need wrapper detection? #3324

Closed

Description

@squid-protocol

Step 2 of epic #3313: size the memory_alloc gap on full clones, which the crucible's per-repo file sample cannot do. CPython's obmalloc.c and curl's curlx layer are defined outside the sample. This step gates whether memory_alloc joins the wrapper channel. Measurement only.

What

  • A --repo DIR --lang LANG mode for tests/tools/wrapper_probe.py, so it runs on any checkout.
  • Clones: curl at curl-8_17_0 and curl-8_18_0 (the refactor Idiom-wrapper tracking: project-local allocator/idiom wrappers make literal-vocabulary rules go blind #3003 cites) and CPython at v3.14.0. Three measurements per clone:
    1. the literal memory_alloc count;
    2. the real gap: calls to the project's own allocator families (PyMem_*/PyObject_*/PyObject_GC_*; curlx_*/Curl_c*alloc/Curl_safefree), counted directly as ground truth;
    3. what step 1's heuristic detects: candidates and resolved sites, with and without the ≤8 LOC / aligned / no-branch filter, as recall against (2).

Decides

Whether memory_alloc detection is (a) material and (b) detectable by a thin-wrapper heuristic, rather than hidden behind function-pointer allocator tables or macros the heuristic cannot see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-engineenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions