| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #ifndef SRC_VM_GC_THREAD_H_ | 5 #ifndef SRC_VM_GC_THREAD_H_ |
| 6 #define SRC_VM_GC_THREAD_H_ | 6 #define SRC_VM_GC_THREAD_H_ |
| 7 | 7 |
| 8 #include "src/vm/thread.h" | 8 #include "src/vm/thread.h" |
| 9 #include "src/vm/program.h" | 9 #include "src/vm/program.h" |
| 10 | 10 |
| 11 namespace fletch { | 11 namespace dartino { |
| 12 | 12 |
| 13 class GCThread { | 13 class GCThread { |
| 14 public: | 14 public: |
| 15 GCThread(); | 15 GCThread(); |
| 16 ~GCThread(); | 16 ~GCThread(); |
| 17 | 17 |
| 18 void StartThread(); | 18 void StartThread(); |
| 19 void TriggerSharedGC(Program* program); | 19 void TriggerSharedGC(Program* program); |
| 20 void TriggerGC(Program* program); | 20 void TriggerGC(Program* program); |
| 21 void Pause(); | 21 void Pause(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 34 HashMap<Program*, int> program_gc_count_; | 34 HashMap<Program*, int> program_gc_count_; |
| 35 HashMap<Program*, int> shared_gc_count_; | 35 HashMap<Program*, int> shared_gc_count_; |
| 36 bool shutting_down_; | 36 bool shutting_down_; |
| 37 int pause_count_; | 37 int pause_count_; |
| 38 | 38 |
| 39 Monitor* client_monitor_; | 39 Monitor* client_monitor_; |
| 40 bool did_pause_; | 40 bool did_pause_; |
| 41 bool did_shutdown_; | 41 bool did_shutdown_; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace fletch | 44 } // namespace dartino |
| 45 | 45 |
| 46 #endif // SRC_VM_GC_THREAD_H_ | 46 #endif // SRC_VM_GC_THREAD_H_ |
| OLD | NEW |