Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1496)

Unified Diff: syzygy/agent/asan/static_shadow.cc

Issue 2526563002: Add a target to run the SyzyAsan RTL unittests in 4G (Closed)
Patch Set: Address nits. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « syzygy/agent/asan/shadow.cc ('k') | syzygy/unittests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: syzygy/agent/asan/static_shadow.cc
diff --git a/syzygy/agent/asan/static_shadow.cc b/syzygy/agent/asan/static_shadow.cc
deleted file mode 100644
index a91a3fc53fc424131066b4c88e2fbd4b6a148776..0000000000000000000000000000000000000000
--- a/syzygy/agent/asan/static_shadow.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2015 Google Inc. All Rights Reserved.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-// Provides an actual static shadow memory. This is intended for use with
-// runtimes that can't patch the memory interceptor probes and thus need a
-// hardcoded address for the shadow memory array.
-//
-// Intended for use in syzyasan_rtl_unittests.exe.
-
-#include "syzygy/agent/asan/shadow.h"
-
-namespace {
-
-// One shadow byte per group of kShadowRatio bytes in a 2G address space.
-// NOTE: This is dependent on the process NOT being large address aware.
-static const size_t kShadowSize = 1 << (31 - agent::asan::kShadowRatioLog);
-
-} // namespace
-
-extern "C" {
-size_t asan_memory_interceptors_shadow_memory_size = kShadowSize;
-uint8_t asan_memory_interceptors_shadow_memory[kShadowSize] = {};
-}
« no previous file with comments | « syzygy/agent/asan/shadow.cc ('k') | syzygy/unittests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698