+Kouhei: not sure if you're familiar with worker scheduler, but maybe enough to review this?
Also +Mingyu for BFCache -- could you review also?
Thanks!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
test BFCache. This test fails without the test.nit:
```suggestion
test BFCache. This test fails without the fix.
```
// Get the max gap between timestamps in the worker.I'm wondering how do we ensure that a new timestamp is sucessfully pushed by the scheduler between we navigate back and check the timestamps list?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
nit:
```suggestion
test BFCache. This test fails without the fix.
```
Done
I'm wondering how do we ensure that a new timestamp is sucessfully pushed by the scheduler between we navigate back and check the timestamps list?
Thanks. Added an async hop to ensure a final entry is logged. This might also be a pre-existing race in the test I copied.
| 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. |
| Commit-Queue | +2 |
Thanks for reviewing! Going to land this.
| 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. |
4 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
Scheduling APIs: Make web scheduling queues pausable
The `NonMainThreadTaskQueue`s used by scheduler.postTask() and
scheduler.yield() are not tracked in `WorkerSchedulerImpl`'s list of
task queues, so they are not subject to pausing for BFCache or virtual
time. This CL fixes that.
Notes:
- Similar to the main thread, the web scheduling queues unregister
themselves during destruction so the map entry can be cleared.
- Testing: I borrowed and modified one of the SharedWorker tests to
test BFCache. This test fails without the fix. I also added a few
unit tests for pausing and shutdown.
- This also does a drive-by fix converting std::map to HashMap. We
use a HashMap for the equivalent map on the main thread side, and
AFAIK there isn't any reason this needs to be a std::map.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |