After a wait, wait_in read the clock once, before taking the lock of the
frame's count and that of the pipeline's own count, and told both ends
that time. A thread stopped between the read and the lock had its end
told after events with later times, and Waited took the order it was
told as the order of the times (review of pull request 3000):
- andrew-ai: A waits 0-20 ms, B 10-85 ms; with A's end told after B's,
a wait at 86 ms was left 80 ms of 100 instead of 15, and a pipeline
both waited for was charged 20 ms instead of 85;
- merzleckeier: A waits 0-10 ms, B 40-50; with A's end, read at 10,
told after B began, B was left 60 ms instead of 90, the frame had 50
left instead of 80, and the pipeline was charged 50 instead of 20.
Each begin and end is now timed under the lock of the count it goes
into, through a seam (trait Waiting: the clock and the wait; Real in
the title), so a count is told them in the order of their times. Waited
keeps the latest time it has seen and takes an older one as that: an end
gives back nothing, a begin counts nothing twice. The frame's end is
timed right after the pipeline's, before the log lines.
A wait still counts until its end is timed: a thread stopped after its
wait and before it reads the time counts as waiting meanwhile (test
a_wait_counts_until_its_end_is_timed).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
It was the last tool carrying its own copy, so LEGACY_COPIES is empty now.
With the SHARED entry on main, test_switched_tools_import_the_helper_and_define_no_copy
fails ("'from report_paths import same_report_path' not found"); with this branch it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
Both output guards compared paths with a private `same_output_path`, a second derivation of `report_paths.same_report_path` that CONTRIBUTING.md asks a report writer to call, and one that missed the helper's folding-volume probe (vfat/exFAT/CIFS).
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
`same_output_path` was a second derivation of `report_paths.same_report_path`, which CONTRIBUTING.md asks a report writer to call, and it missed the helper's folding-volume probe (vfat/exFAT/CIFS). The name stays as a one-line delegation because `tests/test_shader_profile.py` calls it by name.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
`same_output_path` was a second derivation of `report_paths.same_report_path`, which CONTRIBUTING.md asks a report writer to call, and it missed the helper's folding-volume probe (vfat/exFAT/CIFS mounts let `R.json` and `r.json` pass as two reports). The name stays as a one-line delegation because `tests/test_tex_headers_report_paths.py` patches it to count its calls.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The tool carried its own `same_output_path` (realpath, normcase, samefile) while it already imported `report_paths.path_key`, so it answered the report-path question two ways; CONTRIBUTING.md asks a report writer to ask `same_report_path` instead of deriving it again. The private copy also missed the helper's folding-volume probe, so on a Linux mount that ignores case (vfat/exFAT/CIFS) `--json R.json` and `--json r.json` were two paths and the second overwrote the first.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The private same_output_path becomes an alias of report_paths.same_report_path,
and the import keeps same_report_path on its own line: tests/test_report_paths.py
looks for that exact line when the tool is added to SHARED.
The shadow lookup and refresh asked for count * max(stride, 24) bytes, past the last box
(two boxes at 0 and 64: 128 bytes where 88 are used). aabb_span takes (count - 1) * stride + 24
with checked arithmetic; a test covers the last box ending at a buffer's end and overflow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>