-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Nested GC callback #44046
Comments
Weak phantom callbacks run during the prologue or epilogue of major GCs1 so the output you're seeing is not unexpected, just an artifact of how V8 implements them. 1 The relevant method is |
Thanks. So is it wrong to calculate the elapsed time for each GC type through prologue and epilogue callbacks ? |
Yes. No. Depends on whether you count kGCTypeProcessWeakCallbacks as a separate type. :-) |
Get it ! Thank you very much ! |
PR-URL: #44058 Refs: #44046 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
PR-URL: #44058 Refs: #44046 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
PR-URL: #44058 Refs: #44046 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
PR-URL: #44058 Refs: #44046 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
PR-URL: nodejs#44058 Refs: nodejs#44046 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
PR-URL: #44058 Refs: #44046 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
PR-URL: #44058 Refs: #44046 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
PR-URL: nodejs/node#44058 Refs: nodejs/node#44046 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
PR-URL: nodejs/node#44058 Refs: nodejs/node#44046 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
Version
v19.0.0-pre
Platform
Darwin Kernel Version 20.3.0
Subsystem
perf_hooks
What steps will reproduce the bug?
The example code that triggers this bug has not been found. I found this bug in my project. I add some logs into
node_perf.cc
.and found the log as follows.
This will make the value of gc
duration
inaccurate (node_perf.cc
). The 4 and 16 is defined inGCType
.How often does it reproduce? Is there a required condition?
it is difficult to reproduce currently.
What is the expected behavior?
it should be 4 4 16 16.
What do you see instead?
4 16 16 4.
Additional information
cc @bnoordhuis
The text was updated successfully, but these errors were encountered: