-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
src: use AliasedBuffer for TickInfo #17881
src: use AliasedBuffer for TickInfo #17881
Conversation
Sorry, the commits I just landed might have given you an immediate merge conflict? :/ |
aefac2c
to
b31bf75
Compare
@addaleax No worries, just rebased. |
b31bf75
to
26fdc0f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scheduled -> hasScheduled thing is a stylistic change and should arguably be done in a separate commit.
I'm not fond of returning mutable references but I know other places that use AliasedBuffer do the same thing. We should rectify that sometime soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Landed in 5846786 |
PR-URL: #17881 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This does not land cleanly on v9.x, could it be backproted? |
PR-URL: nodejs#17881 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Should this be backported to |
Instead of creating a
v8::ArrayBuffer
inSetupNextTick
, instead just makeTickInfo
use anAliasedBuffer
. The reason it wasn't already doing this is that the code there predates the introduction ofAliasedBuffer
.Also slight clean up around the naming of the "scheduled" flag.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)