mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-13 00:41:02 +00:00
Increase kAllowedOffset for non-optimized build
"init_stack_vars = true" inserts additional instructions which usually removed by optimization if code does not rely on undefined behaviour of uninitialized variables. However in non-optimized build these instructions may still be present. Bug: chromium:1030261 Change-Id: I85d1d0a240dcd1c29c6ff148e88d572b5dcc81d1 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/1949846 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Vitaly Buka <vitalybuka@chromium.org>
This commit is contained in:
parent
359fc4a133
commit
9a312ddff5
@ -213,6 +213,9 @@ class SimulateDelegate : public ExceptionHandlerServer::Delegate {
|
||||
// ASan instrumentation inserts more instructions between the expected
|
||||
// location and what's reported. https://crbug.com/845011.
|
||||
constexpr uint64_t kAllowedOffset = 500;
|
||||
#elif !NDEBUG
|
||||
// Debug build is likely not optimized and contains more instructions.
|
||||
constexpr uint64_t kAllowedOffset = 150;
|
||||
#else
|
||||
constexpr uint64_t kAllowedOffset = 100;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user