Revision: 9206
Author:   [email protected]
Date:     Thu Sep  8 16:43:36 2011
Log: Follow up fixes for r9205: shared library build and thread deletion.

Review URL: http://codereview.chromium.org/7787013
http://code.google.com/p/v8/source/detail?r=9206

Modified:
 /branches/bleeding_edge/src/d8.cc

=======================================
--- /branches/bleeding_edge/src/d8.cc   Thu Sep  8 15:44:03 2011
+++ /branches/bleeding_edge/src/d8.cc   Thu Sep  8 16:43:36 2011
@@ -969,12 +969,14 @@


 SourceGroup::~SourceGroup() {
+#ifndef V8_SHARED
   delete next_semaphore_;
   next_semaphore_ = NULL;
   delete done_semaphore_;
   done_semaphore_ = NULL;
   delete thread_;
   thread_ = NULL;
+#endif  // V8_SHARED
 }


@@ -1078,7 +1080,6 @@
   if (thread_ == NULL) return;
   if (Shell::options.last_run) {
     thread_->Join();
-    thread_ = NULL;
   } else {
     done_semaphore_->Wait();
   }

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to