Turn off buffer security checking in Release builds.
authorMike Klein <mtklein@chromium.org>
Thu, 20 Oct 2016 19:45:02 +0000 (15:45 -0400)
committerMike Klein <mtklein@chromium.org>
Thu, 20 Oct 2016 20:16:12 +0000 (20:16 +0000)
commit8ffb26051f16a2ec4fbd1f8b0737d6d86c0ad819
tree6c1cbb7b7fa6f6f47914bd2a255b16d55afac34d
parent34a2ca1747ae0e9cc1d1e46cdfefe574fc0dbe8e
Turn off buffer security checking in Release builds.

I'm seeing /GS's _security_check_cookie() show up as a signficant piece of time when profiling.  That's mostly just annoying noise.  We generally use our Release builds for performance testing and Debug for correctness, so it seems like a fair thing to disable in Release builds... it's a sort of ASAN thing, which we only do in Debug on other platforms.

BUG=skia:

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3782

Change-Id: I9b3cf4c5cf943fc2549f5bf91a1f6f7e41733e2c
Reviewed-on: https://skia-review.googlesource.com/3782
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Ben Wagner <bungeman@google.com>
gn/BUILD.gn