From 14ec00f86bbc893f1c731ea36afb1b98d8cd77cc Mon Sep 17 00:00:00 2001 From: John McCutchan Date: Tue, 26 Apr 2016 11:12:48 -0700 Subject: [PATCH] Disable a call to the profiler in product mode BUG= R=johnmccutchan@google.com Review URL: https://codereview.chromium.org/1917233002 . --- runtime/vm/object.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc index 8e214c7beb5..cc566b7aa05 100644 --- a/runtime/vm/object.cc +++ b/runtime/vm/object.cc @@ -15516,7 +15516,9 @@ TokenPosition AbstractType::token_pos() const { bool AbstractType::IsInstantiated(TrailPtr trail) const { // AbstractType is an abstract class. // TODO(srdjan) : Remove temporary code. +NOT_IN_PRODUCT( Profiler::DumpStackTrace(true); // Only native stack trace. +) if (Compiler::IsBackgroundCompilation()) { UNREACHABLE(); }