Repository navigation
Conversation
Signed-off-by: joyhsia <2024141530037@stu.scu.edu.cn>
Signed-off-by: joyhsia <2024141530037@stu.scu.edu.cn>
joyhsia
marked this pull request as ready for review
November 26, 2026 13:03
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Exercise the SSE2 string scanners together with scalar UTF-8 validation on modern x86-64 CPUs. The default build takes the SSSE3 path, while
JSON_NO_SIMDdisables SSE2 as well, leaving the handover between the two implementations untested.Add
JSON_TEST_ASSUME_NO_SSSE3to the CPU check used by both scanners and register two variants of the existing lexer and json_view builder suites. They compile with-mno-ssse3, verify the forced CPU result, and run the existing string cases through the fallback. Older compilers that already lack runtime SSSE3 dispatch keep their existing tests.The forced CPU assertions fail against the original implementation and pass with the override. Normal builds retain the existing CPU detection. Both single headers were regenerated with
make amalgamate.Fixes #6157.
Validation: GCC 11 C++11 multi-header and single-header suites each passed all 165 CTest entries; the affected default and SSE2-only suites passed Clang 18 ASan/UBSan;
make check-amalgamationpassed. A separate gcov probe exercised both new override lines and valid/invalid UTF-8 at 40 byte offsets. The overall hosted coverage report is still pending.Checklist
make amalgamate.