OSDN Git Service
(root)
/
android-x86
/
dalvik.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e13936b
)
Revert "Fix the bitsLen calculation in aliasBitmap."
author
Barry Hayes
<bhayes@google.com>
Wed, 14 Jul 2010 18:08:47 +0000
(11:08 -0700)
committer
Barry Hayes
<bhayes@google.com>
Wed, 14 Jul 2010 18:08:47 +0000
(11:08 -0700)
This reverts commit
87a48d25f4451824261153bfdde9dc4c4e51cbb2
.
vm/alloc/HeapSource.c
patch
|
blob
|
history
diff --git
a/vm/alloc/HeapSource.c
b/vm/alloc/HeapSource.c
index
48dc665
..
bb27f31
100644
(file)
--- a/
vm/alloc/HeapSource.c
+++ b/
vm/alloc/HeapSource.c
@@
-682,7
+682,7
@@
static void aliasBitmap(HeapBitmap *dst, HeapBitmap *src,
dst->base = base;
dst->max = max;
- dst->bitsLen = HB_OFFSET_TO_BYTE_INDEX(max - base
+ 1
);
+ dst->bitsLen = HB_OFFSET_TO_BYTE_INDEX(max - base);
dst->allocLen = dst->bitsLen;
offset = base - src->base;
assert(HB_OFFSET_TO_MASK(offset) == 1 << 31);