-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Failed cctest EnvironmentTest.MultipleEnvironmentsPerIsolate in debug build #26736
Comments
The issue is when we have multiple environments accessing the same isolate, we install the same dtrace GC callbacks twice which triggers the DCHECK. I believe dtrace and ETW tracing is, similar to trace events in core, essentially global, and the GC callbacks don't seem to actually rely on the isolate, they just log the GC type and flags. So the fix should be either
I think 1 probably makes more sense |
Yeah, I think either variant makes sense – add this to As another solution, the easiest thing would probably be to use the variant of |
Maybe we should just call |
I don’t think it makes sense for cctest, but for embedders I would assume that the answer is “yes”. /cc @cjihrig |
I tried with these two, but it seems too early call the current
We could probably also split the GC callback part out of |
That sounds fine to me. |
You mean the embedders may need dtrace and ETW, or they do not? Also cc @nodejs/embedders |
Sorry, I meant I think it makes sense to enable them for embedders even if they do not use |
On a side note, it looks like we can't use |
Stack trace
The text was updated successfully, but these errors were encountered: