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

Unified Diff: content/gpu/gpu_main.cc

Issue 317503002: AsanCoverage: make the filenames of zygote/gpu coverage files more unique. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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 | « no previous file | content/zygote/zygote_main_linux.cc » ('j') | content/zygote/zygote_main_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 7cfd446cb9219de3421523c0df760dbffb8c155b..f90858fcdeb8b3567be6b7eda37d396f8e4e4d47 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -450,9 +450,13 @@ bool StartSandboxLinux(const gpu::GPUInfo& gpu_info,
}
#if defined(ADDRESS_SANITIZER)
+ std::stringstream ss;
+ ss << "gpu." << base::RandUint64();
+ std::string sancov_file_name = ss.str();
jln (very slow on Chromium) 2014/06/03 21:43:40 please do: const std::string sancov_file_name = "
earthdok 2014/06/03 21:49:27 Done.
LinuxSandbox* linux_sandbox = LinuxSandbox::GetInstance();
linux_sandbox->sanitizer_args()->coverage_sandboxed = 1;
- linux_sandbox->sanitizer_args()->coverage_fd = -1;
+ linux_sandbox->sanitizer_args()->coverage_fd =
+ __sanitizer_maybe_open_cov_file(sancov_file_name.c_str());
linux_sandbox->sanitizer_args()->coverage_max_block_size = 0;
#endif
« no previous file with comments | « no previous file | content/zygote/zygote_main_linux.cc » ('j') | content/zygote/zygote_main_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698