Fix the Mac OS debug build
authorsgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 4 Jan 2011 13:23:33 +0000 (13:23 +0000)
committersgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 4 Jan 2011 13:23:33 +0000 (13:23 +0000)
Review URL: http://codereview.chromium.org/6046010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6157 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/platform-macos.cc
src/platform.h

index 1f0f324a16e9f834acfdcfdc8e21b1c90c2cc179..ce5330517328ffc9a74daa9003a2b8f9f405961a 100644 (file)
@@ -437,7 +437,7 @@ static void SetThreadName(const char* name) {
   // 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 faf1aee91b3aa9bc43a699ae02e4f8eb954b50e1..7b17067477b1283ef2a5f828ba855cc3d5bb535f 100644 (file)
@@ -421,15 +421,15 @@ class Thread: public ThreadHandle {
   // 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);