Skip to content

v5.8.0#209

Merged
nsavoire merged 6 commits into
v5.xfrom
v5.8.0-proposal
May 10, 2025
Merged

v5.8.0#209
nsavoire merged 6 commits into
v5.xfrom
v5.8.0-proposal

Conversation

@szegedi
Copy link
Copy Markdown

@szegedi szegedi commented May 8, 2025

Release 5.8.0

Other notes:

  • This release was primarily made for introducing support for Node 24.

JIRA: PROF-11772

nsavoire and others added 3 commits May 8, 2025 13:42
xcode 16.3 ships with clang17 as default compiler.
This version of clang warns about casts between incompatible function types,
and v8 has some of those:
```
include/node/v8-persistent-handle.h:512:26: error: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Werror,-Wcast-function-type-mismatch]
```

This commit adds a -Wno-cast-function-type-mismatch flag to the compiler
flags to suppress these warnings (that would otherwise cause errors because
of the -Werror flag) and also a -Wno-unknown-warning-option flag to suppress
the warning about the unknown warning option "-Wcast-function-type-mismatch"
for clang < 17.
* Add support for Node 24. Remove support for Node 16.

* Fix for Node 24

---------

Co-authored-by: Attila Szegedi <attila.szegedi@datadoghq.com>
@szegedi szegedi requested a review from nsavoire as a code owner May 8, 2025 12:29
@szegedi szegedi added the semver-minor Usually minor non-breaking improvements label May 8, 2025
@szegedi szegedi changed the title Fix compilation with xcode 16.3 (#205) v5.8.0 May 8, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2025

Overall package size

Self size: 9.54 MB
Deduped: 9.91 MB
No deduping: 9.91 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | source-map | 0.7.4 | 226 kB | 226 kB | | pprof-format | 2.1.0 | 111.69 kB | 111.69 kB | | p-limit | 3.1.0 | 7.75 kB | 13.78 kB | | delay | 5.0.0 | 11.17 kB | 11.17 kB | | node-gyp-build | 3.9.0 | 8.81 kB | 8.81 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

Also ensure that stdout/stderr from the child process are redirected to
stderr from the parent process.
@szegedi szegedi force-pushed the v5.8.0-proposal branch from dac7529 to e3327e1 Compare May 8, 2025 12:45
nsavoire and others added 2 commits May 10, 2025 03:01
v8 destroys the heap profiler after the heap spaces which can cause crashes:
https://github.com/nodejs/node/blob/v24.0.1/deps/v8/src/heap/heap.cc#L6227-L6246

This workaround stops the heap profiler before the heap spaces are destroyed.
@nsavoire nsavoire merged commit f7c31bf into v5.x May 10, 2025
58 of 59 checks passed
@nsavoire nsavoire deleted the v5.8.0-proposal branch May 10, 2025 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-minor Usually minor non-breaking improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants