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

Side by Side Diff: runtime/vm/thread.h

Issue 1814853005: Restructure/fix thread pointer visiting; added some asserts. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: update 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.cc ('k') | runtime/vm/thread.cc » ('j') | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 #ifndef VM_THREAD_H_ 5 #ifndef VM_THREAD_H_
6 #define VM_THREAD_H_ 6 #define VM_THREAD_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/atomic.h" 10 #include "vm/atomic.h"
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 514
515 void CheckForSafepoint() { 515 void CheckForSafepoint() {
516 if (IsSafepointRequested()) { 516 if (IsSafepointRequested()) {
517 BlockForSafepoint(); 517 BlockForSafepoint();
518 } 518 }
519 } 519 }
520 520
521 Thread* next() const { return next_; } 521 Thread* next() const { return next_; }
522 522
523 // Visit all object pointers. 523 // Visit all object pointers.
524 void VisitObjectPointers(ObjectPointerVisitor* visitor); 524 void VisitObjectPointers(ObjectPointerVisitor* visitor, bool validate_frames);
525 525
526 bool IsValidLocalHandle(Dart_Handle object) const; 526 bool IsValidLocalHandle(Dart_Handle object) const;
527 int CountLocalHandles() const; 527 int CountLocalHandles() const;
528 int ZoneSizeInBytes() const; 528 int ZoneSizeInBytes() const;
529 void UnwindScopes(uword stack_marker); 529 void UnwindScopes(uword stack_marker);
530 530
531 void InitVMConstants(); 531 void InitVMConstants();
532 532
533 private: 533 private:
534 template<class T> T* AllocateReusableHandle(); 534 template<class T> T* AllocateReusableHandle();
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 // Disable thread interrupts. 646 // Disable thread interrupts.
647 class DisableThreadInterruptsScope : public StackResource { 647 class DisableThreadInterruptsScope : public StackResource {
648 public: 648 public:
649 explicit DisableThreadInterruptsScope(Thread* thread); 649 explicit DisableThreadInterruptsScope(Thread* thread);
650 ~DisableThreadInterruptsScope(); 650 ~DisableThreadInterruptsScope();
651 }; 651 };
652 652
653 } // namespace dart 653 } // namespace dart
654 654
655 #endif // VM_THREAD_H_ 655 #endif // VM_THREAD_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698