Skip to content

remove finalizer on Close #183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

timruffles
Copy link

@timruffles timruffles commented Jan 17, 2025

Leaving additional finalizers around consumes memory (to store the finalizer), and has a runtime cost (there's a single runtime go-routine which loops over all finalizers). They can be cleaned up on manual Close.

See this maintainer comment and the runtime docs.

jbedard added a commit to aspect-build/aspect-cli that referenced this pull request Apr 1, 2025
Fix #818

See also:
 smacker/go-tree-sitter#183
 smacker/go-tree-sitter#182

---

### Changes are visible to end-users: yes

- Searched for relevant documentation and updated as needed: yes
- Breaking change (forces users to change their own code or config): no
- Suggested release notes appear below: yes

Ensure `configure` tree-sitter resources are explicitly cleaned up.

### Test plan

- Covered by existing test cases

GitOrigin-RevId: 35c3509f084f0d7c2e01a9d11faa2519462dc46b
jbedard added a commit to aspect-build/aspect-cli that referenced this pull request Apr 1, 2025
Fix #818

See also:
 smacker/go-tree-sitter#183
 smacker/go-tree-sitter#182

---

### Changes are visible to end-users: yes

- Searched for relevant documentation and updated as needed: yes
- Breaking change (forces users to change their own code or config): no
- Suggested release notes appear below: yes

Ensure `configure` tree-sitter resources are explicitly cleaned up.

### Test plan

- Covered by existing test cases

GitOrigin-RevId: 35c3509f084f0d7c2e01a9d11faa2519462dc46b
jbedard added a commit to aspect-build/aspect-cli that referenced this pull request Apr 2, 2025
Fix #818

See also:
 smacker/go-tree-sitter#183
 smacker/go-tree-sitter#182

---

### Changes are visible to end-users: yes

- Searched for relevant documentation and updated as needed: yes
- Breaking change (forces users to change their own code or config): no
- Suggested release notes appear below: yes

Ensure `configure` tree-sitter resources are explicitly cleaned up.

### Test plan

- Covered by existing test cases

GitOrigin-RevId: 35c3509f084f0d7c2e01a9d11faa2519462dc46b
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