Skip to content

lunatik: share the close body between the Lua stop and lunatik_stop - #765

Merged
lneto merged 1 commit into
masterfrom
claude_closeprivate
Sep 3, 2026
Merged

lneto merged 1 commit into
masterfrom
claude_closeprivate

Conversation

@lneto

@lneto lneto commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Split out of #762, stacked on #764.

lunatik_stop repeated the body of lunatik_closeobject, detaching the private under the lock and releasing it outside, minus the guard on a private already detached. The body moves to lunatik_closeprivate, so a C caller closes an object the way the Lua stop does, and lunatik_stop is that plus the reference drop. The percpu object (#762) is the second C caller: its stop closes each instance's state without dropping the reference, since the instances stay in place until the object's last reference.

Tested on 6.8.0-136 (aarch64): runtime 17/17, clean dmesg.

🤖 Generated with Claude Code

@lneto
lneto force-pushed the claude_percpu_tests branch from 0721b6f to 0fe50fe Compare September 3, 2026 12:46
@lneto
lneto force-pushed the claude_closeprivate branch 2 times, most recently from d12e0d2 to 86dbd16 Compare September 3, 2026 14:23
@lneto
lneto force-pushed the claude_percpu_tests branch from 0fe50fe to 5dd79a1 Compare September 3, 2026 14:23
@lneto
lneto changed the base branch from claude_percpu_tests to master September 3, 2026 14:28
@lneto
lneto force-pushed the claude_closeprivate branch 2 times, most recently from e2c98e2 to 067e9ae Compare September 3, 2026 22:52
lunatik_stop repeated the body of lunatik_closeobject, detaching the
private under the lock and releasing it outside, minus the guard on a
private already detached. Move the body to lunatik_closeprivate, so a C
caller closes an object the way the Lua stop does, and lunatik_stop is
that plus the reference drop.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@lneto
lneto force-pushed the claude_closeprivate branch from 067e9ae to eb4a49a Compare September 3, 2026 23:01
@lneto
lneto merged commit cc2ee42 into master Sep 3, 2026
4 checks passed
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