-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
node-api: run finalizers directly from GC #42651
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f144c01
node-api: run finalizers directly from GC
vmoroz 929a0ef
fix disabling JS in finalizers
vmoroz e5e2a60
add unit test for pure finalizers
vmoroz 41e61e1
add test to crash on GC state access and update docs
vmoroz f199c72
add CheckGCAccess calls where code may access GC
vmoroz 2edf5af
fix code and test for Linux
vmoroz 971b894
fix JS linter error to use assert.strictEqual
vmoroz 5ef58d3
Address PR feedback
vmoroz 03d16c7
remove Call_while_GC.txt that accidentally added
vmoroz 25bfcaf
address PR feedback
vmoroz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Address PR feedback
- Loading branch information
commit 5ef58d375ee5830a64ab38fc7ef1d6ba75789b97
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| safe functions: | ||
| napi_get_last_error_info | ||
| napi_get_cb_info | ||
| napi_get_new_target | ||
| napi_get_version | ||
| node_api_post_finalizer | ||
| napi_adjust_external_memory | ||
| napi_set_instance_data | ||
| napi_get_instance_data | ||
| napi_add_env_cleanup_hook | ||
| napi_remove_env_cleanup_hook | ||
| napi_add_async_cleanup_hook | ||
| napi_remove_async_cleanup_hook | ||
| napi_fatal_error | ||
| napi_open_callback_scope | ||
| napi_close_callback_scope | ||
| napi_get_node_version | ||
| node_api_get_module_file_name | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.