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 from upstream #295

Closed

Conversation

gabrielschulhof
Copy link
Contributor

Backport performance improvements, function instantiation, and exception propagation from upstream

Gabriel Schulhof added 6 commits July 11, 2018 17:45
This backports e41ccd4e2de6deb03e277fa9d6baff685ab31689.
This backports 978d89f5e3cf238a0e42303acc9493993ede9c98.
This backports 2a08925896872c345e2948778eab01e9853c22cb.
Some changes needed for v4.x support.

This backports c1695d8bad09fc61922ec91101736debb2d165db.
open_callback_scopes of napi_env cannot be backported.

This backports 9e226475e8e28b8664643d6644503ccd06bceb9a
This backports 1a5a19d6d475578eec355a8b3079b4a96fc77489.
@mhdawson
Copy link
Member

I assume this was needed as you were using a version of Node.js 6.x, 8.x, 10.x which was earlier than when N-API was backported to those lines?

Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gabrielschulhof
Copy link
Contributor Author

Yeah, as long as there are supported versions of Node.js where we must build an out-of-tree copy of N-API, we should have these fixes.

Copy link
Member

@NickNaso NickNaso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

gabrielschulhof pushed a commit that referenced this pull request Jul 12, 2018
The following commits are backported:

e41ccd4e2de6deb03e277fa9d6baff685ab31689 - performance fix
2a08925896872c345e2948778eab01e9853c22cb - performance fix follow-up
978d89f5e3cf238a0e42303acc9493993ede9c98 - make functions gc-able
c1695d8bad09fc61922ec91101736debb2d165db - add napi_fatal_exception()
9e226475e8e28b8664643d6644503ccd06bceb9a - exception handling fix
1a5a19d6d475578eec355a8b3079b4a96fc77489 - crash fix

PR-URL: #295
Reviewed-By: Nicola Del Gobbo <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
@gabrielschulhof
Copy link
Contributor Author

Landed in 9816197.

@gabrielschulhof gabrielschulhof deleted the update-from-upstream branch July 12, 2018 13:03
kevindavies8 added a commit to kevindavies8/node-addon-api-Develop that referenced this pull request Aug 24, 2022
The following commits are backported:

e41ccd4e2de6deb03e277fa9d6baff685ab31689 - performance fix
2a08925896872c345e2948778eab01e9853c22cb - performance fix follow-up
978d89f5e3cf238a0e42303acc9493993ede9c98 - make functions gc-able
c1695d8bad09fc61922ec91101736debb2d165db - add napi_fatal_exception()
9e226475e8e28b8664643d6644503ccd06bceb9a - exception handling fix
1a5a19d6d475578eec355a8b3079b4a96fc77489 - crash fix

PR-URL: nodejs/node-addon-api#295
Reviewed-By: Nicola Del Gobbo <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Marlyfleitas added a commit to Marlyfleitas/node-api-addon-Development that referenced this pull request Aug 26, 2022
The following commits are backported:

e41ccd4e2de6deb03e277fa9d6baff685ab31689 - performance fix
2a08925896872c345e2948778eab01e9853c22cb - performance fix follow-up
978d89f5e3cf238a0e42303acc9493993ede9c98 - make functions gc-able
c1695d8bad09fc61922ec91101736debb2d165db - add napi_fatal_exception()
9e226475e8e28b8664643d6644503ccd06bceb9a - exception handling fix
1a5a19d6d475578eec355a8b3079b4a96fc77489 - crash fix

PR-URL: nodejs/node-addon-api#295
Reviewed-By: Nicola Del Gobbo <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
wroy7860 added a commit to wroy7860/addon-api-benchmark-node that referenced this pull request Sep 19, 2022
The following commits are backported:

e41ccd4e2de6deb03e277fa9d6baff685ab31689 - performance fix
2a08925896872c345e2948778eab01e9853c22cb - performance fix follow-up
978d89f5e3cf238a0e42303acc9493993ede9c98 - make functions gc-able
c1695d8bad09fc61922ec91101736debb2d165db - add napi_fatal_exception()
9e226475e8e28b8664643d6644503ccd06bceb9a - exception handling fix
1a5a19d6d475578eec355a8b3079b4a96fc77489 - crash fix

PR-URL: nodejs/node-addon-api#295
Reviewed-By: Nicola Del Gobbo <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
johnfrench3 pushed a commit to johnfrench3/node-addon-api-git that referenced this pull request Aug 11, 2023
The following commits are backported:

e41ccd4e2de6deb03e277fa9d6baff685ab31689 - performance fix
2a08925896872c345e2948778eab01e9853c22cb - performance fix follow-up
978d89f5e3cf238a0e42303acc9493993ede9c98 - make functions gc-able
c1695d8bad09fc61922ec91101736debb2d165db - add napi_fatal_exception()
9e226475e8e28b8664643d6644503ccd06bceb9a - exception handling fix
1a5a19d6d475578eec355a8b3079b4a96fc77489 - crash fix

PR-URL: nodejs/node-addon-api#295
Reviewed-By: Nicola Del Gobbo <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
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.

3 participants