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

Side by Side Diff: runtime/vm/profiler.cc

Issue 1824883002: Don't take a stack trace if we are in the middle of a deoptimization (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/isolate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/address_sanitizer.h" 5 #include "platform/address_sanitizer.h"
6 #include "platform/memory_sanitizer.h" 6 #include "platform/memory_sanitizer.h"
7 #include "platform/utils.h" 7 #include "platform/utils.h"
8 8
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/atomic.h" 10 #include "vm/atomic.h"
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 } 982 }
983 983
984 if (!InitialRegisterCheck(pc, fp, sp)) { 984 if (!InitialRegisterCheck(pc, fp, sp)) {
985 return; 985 return;
986 } 986 }
987 987
988 if (!CheckIsolate(isolate)) { 988 if (!CheckIsolate(isolate)) {
989 return; 989 return;
990 } 990 }
991 991
992 if (thread->IsMutatorThread() && isolate->IsDeoptimizing()) {
993 return;
994 }
995
992 uword stack_lower = 0; 996 uword stack_lower = 0;
993 uword stack_upper = 0; 997 uword stack_upper = 0;
994 if (!GetAndValidateIsolateStackBounds(thread, 998 if (!GetAndValidateIsolateStackBounds(thread,
995 fp, 999 fp,
996 sp, 1000 sp,
997 &stack_lower, 1001 &stack_lower,
998 &stack_upper)) { 1002 &stack_upper)) {
999 // Could not get stack boundary. 1003 // Could not get stack boundary.
1000 return; 1004 return;
1001 } 1005 }
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 1384
1381 1385
1382 ProcessedSampleBuffer::ProcessedSampleBuffer() 1386 ProcessedSampleBuffer::ProcessedSampleBuffer()
1383 : code_lookup_table_(new CodeLookupTable(Thread::Current())) { 1387 : code_lookup_table_(new CodeLookupTable(Thread::Current())) {
1384 ASSERT(code_lookup_table_ != NULL); 1388 ASSERT(code_lookup_table_ != NULL);
1385 } 1389 }
1386 1390
1387 #endif // !PRODUCT 1391 #endif // !PRODUCT
1388 1392
1389 } // namespace dart 1393 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698