Skip to content

#3174: a parameter passed through a function-pointer field is said so, never as a call of a function the field is named after - #3202

Merged
ehartford merged 1 commit into
mainfrom
i3174-dispatch
Nov 9, 2026
Merged

ehartford merged 1 commit into
mainfrom
i3174-dispatch

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Fixes the dispatch shape of #3174. Both sink recorders mark a member-reference callee (*field), and the retention reason reads 'passed through the function pointer field X, which no unit decides' instead of 'passed to X, which no unit defines'. A field named free or malloc is no longer taken for the libc call (Law 4), as #3172 did for returns. Fixture conan_facade_dispatch_sink_test. Gate and internals lane green before the rebase; battery running after it.

…, never as a call of a function the field is named after

Both sink recorders took a call's spelling as its callee, so glfw's
`_glfw.platform.setWindowTitle(window, title)` was a sink to a function
named setWindowTitle that no unit defines: 'retains param 0 (passed to
setWindowTitle, which no unit defines)', 996 functions in 15 libraries
of the #3116 survey, most of them this dispatch. A member-reference
callee is recorded marked (`*field`), and the retention reason says
'passed through the function pointer field setWindowTitle, which no
unit decides': which function the field holds is a registry fact. The
parameter stays unproven, honestly; a field named free or malloc is no
longer taken for the libc call (Law 4), as #3172 did for returns.

Fixture: conan_facade_dispatch_sink_test.
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery GREEN on 0b5fd09 (with run tools/battery.w in ~/.local/with-staging/i3174b, wall 858 s after a green gate and internals lane; GREEN BATTERY_DONE).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant