For your description /s/not urgent/non-urgent/.
Also, you say you can post clean up work such as idle-time GC as delayed
work,
however you shouldn't do this as it isn't guaranteed that the browser will
be
idle when the delayed work becomes runnable. What you would need to do is
post a
small task which itself posts an idle task (if required) when it get's run?
If
so you should probably make this clearer on the description.
Talking of which, you will need a postIdleTask API as well - are you doing
that
as a separate CL? It might make sense just to do it here.
https://codereview.chromium.org/1179153002/diff/1/src/libplatform/default-platform.cc
File src/libplatform/default-platform.cc (right):
https://codereview.chromium.org/1179153002/diff/1/src/libplatform/default-platform.cc#newcode113
src/libplatform/default-platform.cc:113: task =
PopTaskInMainThreadDelayedQueue(isolate);
This could lead to starvation of the delayed queue (e.g., if the task
popped on the main queue always posted another non-delayed task then the
delayed queue would never get a chance to run. It would be better to
flush all "runnable" tasks from the delayed queue onto the non-delayed
queue when they become eligible to be run, and then pop a task of the
non-delayed queue.
https://codereview.chromium.org/1179153002/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.