Skip to content
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

Update pool.go #5284

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft

Update pool.go #5284

wants to merge 1 commit into from

Conversation

geeknik
Copy link
Contributor

@geeknik geeknik commented Jun 11, 2024

  • Ensures that all cleanup functions (like deleting global objects and calling opts.Cleanup) are always executed, even if an error occurs.

  • Added deferred recovery from panics to prevent crashes and ensure proper error handling.

  • Ensured that the pool's concurrency is managed correctly and that resources are properly released after use.

These changes should help mitigate memory leaks and ensure more robust resource management in JavaScript execution.

- Ensures that all cleanup functions (like deleting global objects and calling opts.Cleanup) are always executed, even if an error occurs.

- Added deferred recovery from panics to prevent crashes and ensure proper error handling.

- Ensured that the pool's concurrency is managed correctly and that resources are properly released after use.

These changes should help mitigate memory leaks and ensure more robust resource management in JavaScript execution.
@geeknik geeknik marked this pull request as draft June 11, 2024 13:40
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.

None yet

1 participant