Executor executor = Runnable::run;
Alex Mîrzeanit: i'd just remove this so it's clearer in the code that it's currently running synchronously.
Done
args->ThrowTypeError("getNamePort requires exactly one argument.");
Alex Mîrzeanit: spelling
Done
JsSandboxMessagePort::~JsSandboxMessagePort() {
Alex Mîrzeanit: blank line between things
Done
std::ranges::copy(
Alex MîrzeaThis is also copying the data twice like the code you already fixed for the other direction, and can be fixed similarly.
Done
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
jsize length = env->GetArrayLength(j_array_buffer.obj());
why not just get the length in the function that actually uses the data?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
jsize length = env->GetArrayLength(j_array_buffer.obj());
why not just get the length in the function that actually uses the data?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
public class JsSandboxMessagePort {
Alex MîrzeaA TODO, which I'd be happy to postpone to a follow-up CL:
We will need to account for the memory of messages that haven't yet reached the isolate thread. This would probably be done by lifting some of the existing accounting logic out of our arraybuffer allocator class for more general (and thread safe!) usage.
CL is uploaded.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |