Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "vm/isolate.h" | 5 #include "vm/isolate.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "include/dart_native_api.h" | 8 #include "include/dart_native_api.h" |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "platform/text_buffer.h" | 10 #include "platform/text_buffer.h" |
| (...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 790 debugger_(NULL), | 790 debugger_(NULL), |
| 791 resume_request_(false), | 791 resume_request_(false), |
| 792 last_resume_timestamp_(OS::GetCurrentTimeMillis()), | 792 last_resume_timestamp_(OS::GetCurrentTimeMillis()), |
| 793 has_compiled_code_(false), | 793 has_compiled_code_(false), |
| 794 random_(), | 794 random_(), |
| 795 simulator_(NULL), | 795 simulator_(NULL), |
| 796 mutex_(new Mutex()), | 796 mutex_(new Mutex()), |
| 797 symbols_mutex_(new Mutex()), | 797 symbols_mutex_(new Mutex()), |
| 798 type_canonicalization_mutex_(new Mutex()), | 798 type_canonicalization_mutex_(new Mutex()), |
| 799 constant_canonicalization_mutex_(new Mutex()), | 799 constant_canonicalization_mutex_(new Mutex()), |
| 800 lookup_mutex_(new Mutex()), | |
|
Cutch
2016/07/01 17:16:18
where is this mutex deleted?
siva
2016/07/01 17:39:29
Yes we need to delete it in the destructor.
Florian Schneider
2016/07/01 19:31:58
Done.
Florian Schneider
2016/07/01 19:31:58
Done.
| |
| 800 message_handler_(NULL), | 801 message_handler_(NULL), |
| 801 spawn_state_(NULL), | 802 spawn_state_(NULL), |
| 802 is_runnable_(false), | 803 is_runnable_(false), |
| 803 gc_prologue_callback_(NULL), | 804 gc_prologue_callback_(NULL), |
| 804 gc_epilogue_callback_(NULL), | 805 gc_epilogue_callback_(NULL), |
| 805 defer_finalization_count_(0), | 806 defer_finalization_count_(0), |
| 806 deopt_context_(NULL), | 807 deopt_context_(NULL), |
| 807 is_service_isolate_(false), | 808 is_service_isolate_(false), |
| 808 stacktrace_(NULL), | 809 stacktrace_(NULL), |
| 809 stack_frame_index_(-1), | 810 stack_frame_index_(-1), |
| (...skipping 2006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2816 void IsolateSpawnState::DecrementSpawnCount() { | 2817 void IsolateSpawnState::DecrementSpawnCount() { |
| 2817 ASSERT(spawn_count_monitor_ != NULL); | 2818 ASSERT(spawn_count_monitor_ != NULL); |
| 2818 ASSERT(spawn_count_ != NULL); | 2819 ASSERT(spawn_count_ != NULL); |
| 2819 MonitorLocker ml(spawn_count_monitor_); | 2820 MonitorLocker ml(spawn_count_monitor_); |
| 2820 ASSERT(*spawn_count_ > 0); | 2821 ASSERT(*spawn_count_ > 0); |
| 2821 *spawn_count_ = *spawn_count_ - 1; | 2822 *spawn_count_ = *spawn_count_ - 1; |
| 2822 ml.Notify(); | 2823 ml.Notify(); |
| 2823 } | 2824 } |
| 2824 | 2825 |
| 2825 } // namespace dart | 2826 } // namespace dart |
| OLD | NEW |