Revision: 10757
Author:   [email protected]
Date:     Mon Feb 20 05:42:24 2012
Log:      Port r10490 and r10615 to cygwin.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/9423041
http://code.google.com/p/v8/source/detail?r=10757

Modified:
 /branches/bleeding_edge/src/platform-cygwin.cc

=======================================
--- /branches/bleeding_edge/src/platform-cygwin.cc      Fri Jan 20 08:17:08 2012
+++ /branches/bleeding_edge/src/platform-cygwin.cc      Mon Feb 20 05:42:24 2012
@@ -365,16 +365,9 @@


 Thread::Thread(const Options& options)
-    : data_(new PlatformData),
-      stack_size_(options.stack_size) {
-  set_name(options.name);
-}
-
-
-Thread::Thread(const char* name)
-    : data_(new PlatformData),
-      stack_size_(0) {
-  set_name(name);
+    : data_(new PlatformData()),
+      stack_size_(options.stack_size()) {
+  set_name(options.name());
 }


@@ -617,8 +610,10 @@

 class SamplerThread : public Thread {
  public:
+  static const int kSamplerThreadStackSize = 64 * KB;
+
   explicit SamplerThread(int interval)
-      : Thread("SamplerThread"),
+      : Thread(Thread::Options("SamplerThread", kSamplerThreadStackSize)),
         interval_(interval) {}

   static void AddActiveSampler(Sampler* sampler) {

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

Reply via email to