Skip to content

Close native locks with Synchronizable - #121

Open
Guflly wants to merge 1 commit into
touchlab:mainfrom
Guflly:fix/concurrent-collection-lock-lifecycle
Open

Close native locks with Synchronizable#121
Guflly wants to merge 1 commit into
touchlab:mainfrom
Guflly:fix/concurrent-collection-lock-lifecycle

Conversation

@Guflly

@Guflly Guflly commented Aug 1, 2026

Copy link
Copy Markdown

Owns the native Lock in a cleaner-backed resource so Synchronizable closes it when it becomes unreachable. Adds a native GC regression test that verifies cleanup happens exactly once.

Tests: native and JVM suites, ktlint, and API validation.

Closes #117.

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.

maybe leak: ConcurrentCollection use Lock but seems never close() it

1 participant