-
Notifications
You must be signed in to change notification settings - Fork 507
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
'IdleNotificationDeadline' is deprecated: Use MemoryPressureNotification() #953
Comments
workaround for nodejs/nan#953
While nan's #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 11 || \
(V8_MAJOR_VERSION == 11 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
inline bool IdleNotification(int idle_time_in_ms) {
v8::Isolate::GetCurrent()->MemoryPressureNotification(v8::MemoryPressureLevel::kModerate);
return true;
} It seems to make more sense to deprecate nan's |
Perhaps. Do you have any more details on what the difference is?
…On November 2, 2023 6:18:18 PM GMT+01:00, "Vladimir Vrzić" ***@***.***> wrote:
While nan's `IdleNotification` could be changed to use `MemoryPressureNotification` with newer versions of v8, e.g.
```cpp
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 11 || \
(V8_MAJOR_VERSION == 11 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
inline bool IdleNotification(int idle_time_in_ms) {
v8::Isolate::GetCurrent()->MemoryPressureNotification(v8::MemoryPressureLevel::kModerate);
return true;
}
```
It seems to make more sense to deprecate nan's `IdleNotification`, and perhaps introduce a new shim for `MemoryPressureNotification` to the nan API.
|
From reading the v8 API docs, while both Concretely the idea behind On the other hand, the idea behind So, while similar, the end user of the API (developer) would likely not just simply replace calls to |
The -Wno-error=deprecated-declarations flag can be removed when nodejs/nan#953 is resolved Signed-off-by: Amit Prinz Setter <[email protected]>
The -Wno-error=deprecated-declarations flag can be removed when nodejs/nan#953 is resolved Signed-off-by: Amit Prinz Setter <[email protected]>
The -Wno-error=deprecated-declarations flag can be removed when nodejs/nan#953 is resolved Signed-off-by: Amit Prinz Setter <[email protected]>
…e. (#7660) upgrade to node20. ignore deprecated warnings to make nan compile. The -Wno-error=deprecated-declarations flag can be removed when nodejs/nan#953 is resolved Signed-off-by: Amit Prinz Setter <[email protected]>
…e. (noobaa#7660) upgrade to node20. ignore deprecated warnings to make nan compile. The -Wno-error=deprecated-declarations flag can be removed when nodejs/nan#953 is resolved Signed-off-by: Amit Prinz Setter <[email protected]> (cherry picked from commit bafd976)
…e. (noobaa#7660) upgrade to node20. ignore deprecated warnings to make nan compile. The -Wno-error=deprecated-declarations flag can be removed when nodejs/nan#953 is resolved Signed-off-by: Amit Prinz Setter <[email protected]> (cherry picked from commit bafd976) Signed-off-by: Danny Zaken <[email protected]>
…e. (noobaa#7660) upgrade to node20. ignore deprecated warnings to make nan compile. The -Wno-error=deprecated-declarations flag can be removed when nodejs/nan#953 is resolved Signed-off-by: Amit Prinz Setter <[email protected]> (cherry picked from commit bafd976)
…e. (noobaa#7660) upgrade to node20. ignore deprecated warnings to make nan compile. The -Wno-error=deprecated-declarations flag can be removed when nodejs/nan#953 is resolved Signed-off-by: Amit Prinz Setter <[email protected]> (cherry picked from commit bafd976) Signed-off-by: liranmauda <[email protected]>
…e. (noobaa#7660) upgrade to node20. ignore deprecated warnings to make nan compile. The -Wno-error=deprecated-declarations flag can be removed when nodejs/nan#953 is resolved Signed-off-by: Amit Prinz Setter <[email protected]> (cherry picked from commit bafd976) Signed-off-by: liranmauda <[email protected]>
…e. (noobaa#7660) upgrade to node20. ignore deprecated warnings to make nan compile. The -Wno-error=deprecated-declarations flag can be removed when nodejs/nan#953 is resolved Signed-off-by: Amit Prinz Setter <[email protected]> (cherry picked from commit bafd976) Signed-off-by: liranmauda <[email protected]>
…e. (noobaa#7660) upgrade to node20. ignore deprecated warnings to make nan compile. The -Wno-error=deprecated-declarations flag can be removed when nodejs/nan#953 is resolved Signed-off-by: Amit Prinz Setter <[email protected]>
Getting the following warning with Node.js 20.x:
This method will be deprecated soon.
https://chromium.googlesource.com/v8/v8/+/refs/heads/main/include/v8-isolate.h#1295
The text was updated successfully, but these errors were encountered: