src: munmap(2) upon class instance destructor · nodejs/node@d779980 · GitHub
Skip to content

Commit d779980

Browse files
Gabriel Schulhofaddaleaxbnoordhuis
authored andcommitted
src: munmap(2) upon class instance destructor
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>
1 parent 1c47bba commit d779980

1 file changed

Lines changed: 102 additions & 72 deletions

File tree

src/large_pages/node_large_page.cc

Lines changed: 102 additions & 72 deletions

0 commit comments

Comments
 (0)