-
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
v8::Isolate::GetCurrent()->IdleNotificationDeadline not working in 3.x (manual gc not working) #2478
Comments
example code (from memwatch):
|
Do you start iojs with |
I supposed that flag was enabled by default... I'll try when back to the office. Has been changed something in iojs 3.x? Everything works fine till 2.5.0 branch. |
I take back what I said, I see that |
Nope. Seems something not working in v8... |
Should we suppose the strategy to call
is deprecated cause new IdleNotification implementation does not returns true as consistently as before? |
That is probably a safe assumption. IIRC, there was never a guarantee of this triggering garbage collection. Only reliable way is by the functionality exposed with --expose-gc. |
Closing unless there is actually something we can do about this and/or should. :) |
Hi there, I'm currently maintaining the node-memwatch package against latest iojs/nodejs versions, available as memwatch-next on npm.
I've noticed that with new v8 version 4.4.63.26 the IdleNotification does not trigger GC at all.
I'm using both NaN 2.0.5 and direct v8::Isolate::GetCurrent()->IdleNotificationDeadline call with 500ms, 1s and 5s.
The gc seems not to be executed. I can make it run successfully with --expose-gc flag through the global.gc() function.
The text was updated successfully, but these errors were encountered: