Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion runtime/shims/d3d12_xs_list_values.h
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,10 @@ class Pump {
stall_logged_ = false;
return;
}
const std::uint64_t ms = GetTickCount64() - since;
// release_loop stores the start with its low bit set, so on an even tick it is 1 ms ahead of the clock: read
// in that millisecond, the difference would wrap to 2^64 - 1 and report a stall that has not happened.
const std::uint64_t now = GetTickCount64();
const std::uint64_t ms = now > since ? now - since : 0;
if (ms < kStallMs || stall_logged_) return;
stall_logged_ = true;
bump(counters().release_stalls);
Expand Down