smalloc: revert change to use pointer indirection
authorTrevor Norris <trev.norris@gmail.com>
Sat, 6 Jul 2013 22:05:04 +0000 (15:05 -0700)
committerTrevor Norris <trev.norris@gmail.com>
Sat, 6 Jul 2013 22:05:04 +0000 (15:05 -0700)
Better to compare fixed addresses than to use pointer indirection.

src/smalloc.cc

index 13afd27..ca5e88d 100644 (file)
@@ -255,13 +255,13 @@ class RetainedAllocInfo: public RetainedObjectInfo {
   virtual intptr_t GetSizeInBytes();
 
  private:
-  static const char* label_;
+  static const char label_[];
   char* data_;
   int length_;
 };
 
 
-const char* RetainedAllocInfo::label_ = "smalloc";
+const char RetainedAllocInfo::label_[] = "smalloc";
 
 
 RetainedAllocInfo::RetainedAllocInfo(Handle<Value> wrapper) {