Commit 63f18ec5 authored by Alexander Timin's avatar Alexander Timin Committed by Commit Bot

[scheduler] Disable MSVC optimisations for memory corruption sentinel

R=skyostil@chromium.org

Change-Id: Idf979483eb3e66fbd151d2f8c0834d927b707c97
Reviewed-on: https://chromium-review.googlesource.com/874693Reviewed-by: default avatarSami Kyöstilä <skyostil@chromium.org>
Commit-Queue: Alexander Timin <altimin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#531878}
parent 4ab310b3
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "base/bind.h" #include "base/bind.h"
#include "base/bit_cast.h" #include "base/bit_cast.h"
#include "base/compiler_specific.h"
#include "base/debug/crash_logging.h" #include "base/debug/crash_logging.h"
#include "base/rand_util.h" #include "base/rand_util.h"
#include "base/time/default_tick_clock.h" #include "base/time/default_tick_clock.h"
...@@ -858,9 +859,11 @@ void TaskQueueManager::SetRandomSeed(uint64_t value) { ...@@ -858,9 +859,11 @@ void TaskQueueManager::SetRandomSeed(uint64_t value) {
random_generator_.seed(value); random_generator_.seed(value);
} }
MSVC_DISABLE_OPTIMIZE()
bool TaskQueueManager::Validate() { bool TaskQueueManager::Validate() {
return memory_corruption_sentinel_ == kMemoryCorruptionSentinelValue; return memory_corruption_sentinel_ == kMemoryCorruptionSentinelValue;
} }
MSVC_ENABLE_OPTIMIZE()
void TaskQueueManager::EnableCrashKeys( void TaskQueueManager::EnableCrashKeys(
const char* file_name_crash_key_name, const char* file_name_crash_key_name,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment