Reviewers: Rico,
Description:
Fix the Mac OS debug build
Please review this at http://codereview.chromium.org/6046010/
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
Affected files:
M src/platform-macos.cc
M src/platform.h
Index: src/platform-macos.cc
===================================================================
--- src/platform-macos.cc (revision 6148)
+++ src/platform-macos.cc (working copy)
@@ -437,7 +437,7 @@
// Mac OS X does not expose the length limit of the name, so hardcode it.
static const int kMaxNameLength = 63;
USE(kMaxNameLength);
- ASSERT(kMaxThreadNameLength <= kMaxNameLength);
+ ASSERT(Thread::kMaxThreadNameLength <= kMaxNameLength);
dynamic_pthread_setname_np(name);
}
Index: src/platform.h
===================================================================
--- src/platform.h (revision 6144)
+++ src/platform.h (working copy)
@@ -421,15 +421,15 @@
// A hint to the scheduler to let another thread run.
static void YieldCPU();
+ // The thread name length is limited to 16 based on Linux's
implementation of
+ // prctl().
+ static const int kMaxThreadNameLength = 16;
private:
void set_name(const char *name);
class PlatformData;
PlatformData* data_;
- // The thread name length is limited to 16 based on Linux's
implementation of
- // prctl().
- static const int kMaxThreadNameLength = 16;
char name_[kMaxThreadNameLength];
DISALLOW_COPY_AND_ASSIGN(Thread);
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev