-
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: munmap(2) upon class instance destructor #32570
src: munmap(2) upon class instance destructor #32570
Conversation
a82c31c
to
9e6aeb9
Compare
* Clean up and co-locate explanation for what the code does to the top of the file. * Remove extraneous headers. * Remove the need for `OnScopeLeave` replacing it with a pair of labels `fail:` and `done:`. Re: nodejs#32570 Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
@jasnell @addaleax @devnexen having to declare the code for the class in the |
@addaleax I have used |
74779ed
to
c747290
Compare
@bnoordhuis I have made the changes you suggested. |
0022b2e
to
a4a21f8
Compare
a4a21f8
to
1f9ee3e
Compare
Replace `OnScopeLeave` with a class whose instance destructor performs the munmap(2). Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com> Fixes: nodejs#32532 Co-Authored-By: Anna Henningsen <github@addaleax.net> Co-Authored-By: Ben Noordhuis <info@bnoordhuis.nl>
6686288
to
763da86
Compare
Rebased. |
Replace `OnScopeLeave` with a class whose instance destructor performs the munmap(2). Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com> Fixes: #32532 PR-URL: #32570 Co-Authored-By: Anna Henningsen <github@addaleax.net> Co-Authored-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com>
Landed in a50745e. |
Replace `OnScopeLeave` with a class whose instance destructor performs the munmap(2). Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com> Fixes: #32532 PR-URL: #32570 Co-Authored-By: Anna Henningsen <github@addaleax.net> Co-Authored-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com>
Replace `OnScopeLeave` with a class whose instance destructor performs the munmap(2). Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com> Fixes: #32532 PR-URL: #32570 Co-Authored-By: Anna Henningsen <github@addaleax.net> Co-Authored-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com>
Depends on the large pages change to land on v12.x |
Replace `OnScopeLeave` with a class whose instance destructor performs the munmap(2). Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com> Fixes: nodejs#32532 PR-URL: nodejs#32570 Co-Authored-By: Anna Henningsen <github@addaleax.net> Co-Authored-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com>
Replace `OnScopeLeave` with a class whose instance destructor performs the munmap(2). Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com> Fixes: #32532 PR-URL: #32570 Co-Authored-By: Anna Henningsen <github@addaleax.net> Co-Authored-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com>
Replace
OnScopeLeave
with a class whose instance destructor performsthe munmap(2).
Signed-off-by: @gabrielschulhof
Fixes: #32532
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes