Index: src/platform-win32.cc |
=================================================================== |
--- src/platform-win32.cc (revision 10368) |
+++ src/platform-win32.cc (working copy) |
@@ -198,7 +198,7 @@ |
// ---------------------------------------------------------------------------- |
// The Time class represents time on win32. A timestamp is represented as |
-// a 64-bit integer in 100 nano-seconds since January 1, 1601 (UTC). JavaScript |
+// a 64-bit integer in 100 nanoseconds since January 1, 1601 (UTC). JavaScript |
// timestamps are represented as a doubles in milliseconds since 00:00:00 UTC, |
// January 1, 1970. |
@@ -776,7 +776,7 @@ |
// We keep the lowest and highest addresses mapped as a quick way of |
// determining that pointers are outside the heap (used mostly in assertions |
-// and verification). The estimate is conservative, ie, not all addresses in |
+// and verification). The estimate is conservative, i.e., not all addresses in |
// 'allocated' space are actually allocated to our heap. The range is |
// [lowest, highest), inclusive on the low and and exclusive on the high end. |
static void* lowest_ever_allocated = reinterpret_cast<void*>(-1); |
@@ -1526,19 +1526,12 @@ |
// handle until it is started. |
Thread::Thread(const Options& options) |
- : stack_size_(options.stack_size) { |
+ : stack_size_(options.stack_size()) { |
data_ = new PlatformData(kNoThread); |
- set_name(options.name); |
+ set_name(options.name()); |
} |
-Thread::Thread(const char* name) |
- : stack_size_(0) { |
- data_ = new PlatformData(kNoThread); |
- set_name(name); |
-} |
- |
- |
void Thread::set_name(const char* name) { |
OS::StrNCpy(Vector<char>(name_, sizeof(name_)), name, strlen(name)); |
name_[sizeof(name_) - 1] = '\0'; |
@@ -1901,8 +1894,10 @@ |
class SamplerThread : public Thread { |
public: |
+ static const int kSamplerThreadStackSize = 32 * KB; |
+ |
explicit SamplerThread(int interval) |
- : Thread("SamplerThread"), |
+ : Thread(Thread::Options("SamplerThread", kSamplerThreadStackSize)), |
interval_(interval) {} |
static void AddActiveSampler(Sampler* sampler) { |