Revision: 6157
Author: [email protected]
Date: Tue Jan  4 05:23:33 2011
Log: Fix the Mac OS debug build
Review URL: http://codereview.chromium.org/6046010
http://code.google.com/p/v8/source/detail?r=6157

Modified:
 /branches/bleeding_edge/src/platform-macos.cc
 /branches/bleeding_edge/src/platform.h

=======================================
--- /branches/bleeding_edge/src/platform-macos.cc       Tue Jan  4 03:28:17 2011
+++ /branches/bleeding_edge/src/platform-macos.cc       Tue Jan  4 05:23:33 2011
@@ -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);
 }

=======================================
--- /branches/bleeding_edge/src/platform.h      Tue Jan  4 01:09:50 2011
+++ /branches/bleeding_edge/src/platform.h      Tue Jan  4 05:23:33 2011
@@ -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

Reply via email to