forked from LuaJIT/LuaJIT
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix fix-mips64-spare-side-exit-patching
This test may be flaky due to a sparse filling of the vector with traces. Hence, `misc.getmetrics().jit_trace_num` (which is the total number of traces) is not the last trace number, so there is no mcode for it. This patch fixes flakyness from two sides: * The `fillmcode()` function now starts a search from the given trace itself, so there is no possible inconsistency with the growing vector. * The finding of the last trace number in the aforementioned test is now more bulletproof: we scan all numbers from the metrics value to the maxtrace value. The last number with an existing mcode is chosen as the resulting last trace number. Reviewed-by: Maxim Kokryashkin <[email protected]> Reviewed-by: Igor Munkin <[email protected]> Signed-off-by: Igor Munkin <[email protected]>
- Loading branch information
1 parent
bb93182
commit 7d5901d
Showing
2 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters