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

Deprecate smalloc functions #1565

Merged
merged 3 commits into from
Apr 29, 2015

Conversation

bnoordhuis
Copy link
Member

@trevnorris
Copy link
Contributor

LGTM

@mscdex mscdex added the smalloc label Apr 29, 2015
The NODE_DEPRECATED macro was piggybacking on the V8_DEPRECATED macro
but that macro is silent unless V8_DEPRECATION_WARNINGS is defined,
something io.js doesn't do.  Ergo, no deprecation notices were being
issued.

PR-URL: nodejs#1565
Reviewed-By: Trevor Norris <[email protected]>
The previous commit enables deprecation warnings, this commit fixes
the handful of offending sites where the isolate was not explicitly
being passed around.

PR-URL: nodejs#1565
Reviewed-By: Trevor Norris <[email protected]>
Upcoming V8 changes will make it impossible to keep supporting the
smalloc functionality so deprecate the functions in smalloc.h now
and tell people to switch to typed arrays.

This commit shuffles code around in smalloc.cc to avoid generating
the deprecation warnings when building io.js itself.

PR-URL: nodejs#1565
Reviewed-By: Trevor Norris <[email protected]>
@bnoordhuis bnoordhuis merged commit 7306252 into nodejs:master Apr 29, 2015
@bnoordhuis bnoordhuis deleted the deprecate-smalloc-functions branch April 29, 2015 23:06
@rvagg rvagg mentioned this pull request May 2, 2015
@bnoordhuis
Copy link
Member Author

@misterdjules You should probably cherry-pick 609fa0d into joyent/node; a bug in the NODE_DEPRECATED macro stops it from actually printing deprecation warnings.

@misterdjules
Copy link

@bnoordhuis Thanks for the heads up, it is very much appreciated 👍

Fishrock123 pushed a commit to Fishrock123/node that referenced this pull request May 19, 2015
The NODE_DEPRECATED macro was piggybacking on the V8_DEPRECATED macro
but that macro is silent unless V8_DEPRECATION_WARNINGS is defined,
something io.js doesn't do.  Ergo, no deprecation notices were being
issued.

PR-URL: nodejs#1565
Reviewed-By: Trevor Norris <[email protected]>
Fishrock123 pushed a commit to Fishrock123/node that referenced this pull request May 19, 2015
The previous commit enables deprecation warnings, this commit fixes
the handful of offending sites where the isolate was not explicitly
being passed around.

PR-URL: nodejs#1565
Reviewed-By: Trevor Norris <[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.

5 participants