Index: src/marking-thread.h |
diff --git a/src/marking-thread.h b/src/marking-thread.h |
index 9efa3af13262165972abf179defac6f83fed4ac9..021cd5b48c78dde7ee13be890ceff08c387db51a 100644 |
--- a/src/marking-thread.h |
+++ b/src/marking-thread.h |
@@ -43,24 +43,19 @@ namespace internal { |
class MarkingThread : public Thread { |
public: |
explicit MarkingThread(Isolate* isolate); |
+ ~MarkingThread() {} |
void Run(); |
void Stop(); |
void StartMarking(); |
void WaitForMarkingThread(); |
- ~MarkingThread() { |
- delete start_marking_semaphore_; |
- delete end_marking_semaphore_; |
- delete stop_semaphore_; |
- } |
- |
private: |
Isolate* isolate_; |
Heap* heap_; |
- Semaphore* start_marking_semaphore_; |
- Semaphore* end_marking_semaphore_; |
- Semaphore* stop_semaphore_; |
+ Semaphore start_marking_semaphore_; |
+ Semaphore end_marking_semaphore_; |
+ Semaphore stop_semaphore_; |
volatile AtomicWord stop_thread_; |
int id_; |
static Atomic32 id_counter_; |