projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0a05e4
)
smalloc: revert change to use pointer indirection
author
Trevor Norris
<trev.norris@gmail.com>
Sat, 6 Jul 2013 22:05:04 +0000
(15:05 -0700)
committer
Trevor 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
patch
|
blob
|
history
diff --git
a/src/smalloc.cc
b/src/smalloc.cc
index
13afd27
..
ca5e88d
100644
(file)
--- a/
src/smalloc.cc
+++ b/
src/smalloc.cc
@@
-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) {