OSDN Git Service
(root)
/
android-x86
/
dalvik.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove spammy logging from 8470684 investigation.
[android-x86/dalvik.git]
/
vm
/
BitVector.cpp
diff --git
a/vm/BitVector.cpp
b/vm/BitVector.cpp
index
5302789
..
8b1d141
100644
(file)
--- a/
vm/BitVector.cpp
+++ b/
vm/BitVector.cpp
@@
-42,8
+42,7
@@
BitVector* dvmAllocBitVector(unsigned int startBits, bool expandable)
bv->storageSize = count;
bv->expandable = expandable;
- bv->storage = (u4*) malloc(count * sizeof(u4));
- memset(bv->storage, 0x00, count * sizeof(u4));
+ bv->storage = (u4*) calloc(count, sizeof(u4));
return bv;
}