Commit 09e7c01b authored by mlippautz's avatar mlippautz Committed by Commit bot

[heap] Fix LAB tests

Let's not write out of bounds here.

R=hpayer@chromium.org
BUG=chromium:636331

Review-Url: https://codereview.chromium.org/2237473002
Cr-Commit-Position: refs/heads/master@{#38547}
parent c78c499a
...@@ -170,7 +170,7 @@ TEST(MergeSuccessful) { ...@@ -170,7 +170,7 @@ TEST(MergeSuccessful) {
CcTest::InitializeVM(); CcTest::InitializeVM();
Heap* heap = CcTest::heap(); Heap* heap = CcTest::heap();
const int kLabSize = 2 * KB; const int kLabSize = 2 * KB;
Address base1 = AllocateLabBackingStore(heap, kLabSize); Address base1 = AllocateLabBackingStore(heap, 2 * kLabSize);
Address limit1 = base1 + kLabSize; Address limit1 = base1 + kLabSize;
Address base2 = limit1; Address base2 = limit1;
Address limit2 = base2 + kLabSize; Address limit2 = base2 + kLabSize;
...@@ -226,7 +226,7 @@ TEST(MergeFailed) { ...@@ -226,7 +226,7 @@ TEST(MergeFailed) {
CcTest::InitializeVM(); CcTest::InitializeVM();
Heap* heap = CcTest::heap(); Heap* heap = CcTest::heap();
const int kLabSize = 2 * KB; const int kLabSize = 2 * KB;
Address base1 = AllocateLabBackingStore(heap, kLabSize); Address base1 = AllocateLabBackingStore(heap, 3 * kLabSize);
Address base2 = base1 + kLabSize; Address base2 = base1 + kLabSize;
Address base3 = base2 + kLabSize; Address base3 = base2 + kLabSize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment