Repository navigation
fix(windows): report actual stack reserve factor in stack guarantee warning - #2313
Merged
jpnurmi merged 3 commits intoNov 17, 2026
Merged
Conversation
Cast `thread_stack_reserve` to `double` explicitly. The implicit 64-bit `size_t` to `double` conversion trips `-Wimplicit-int-float-conversion`.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2313 +/- ##
==========================================
+ Coverage 75.62% 75.69% +0.07%
==========================================
Files 104 104
Lines 28443 28443
Branches 5220 5220
==========================================
+ Hits 21510 21531 +21
+ Misses 5585 5570 -15
+ Partials 1348 1342 -6 🚀 New features to boost your workflow:
|
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.
Hello,
The warning emitted by
sentry__set_default_thread_stack_guarantee()when a thread's stack reserve is too small prints an "actual" factor, but it was computed fromexpected_stack_reserveinstead ofthread_stack_reserve. So it always showed the expected factor (e.g.expected: 2x, actual: 2.00x), which made the log useless for diagnosing the problem.Regards, Patrick