mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Update unittest for allocator laziness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101131 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5e6a705985
commit
f3a3b0fc0e
@ -239,8 +239,8 @@ TEST(JITMemoryManagerTest, TestManyGlobals) {
|
||||
size_t Size = 128;
|
||||
int Iters = (SlabSize / Size) + 1;
|
||||
|
||||
// We should start with one slab.
|
||||
EXPECT_EQ(1U, MemMgr->GetNumDataSlabs());
|
||||
// We should start with no slabs.
|
||||
EXPECT_EQ(0U, MemMgr->GetNumDataSlabs());
|
||||
|
||||
// After allocating a bunch of globals, we should have two.
|
||||
for (int I = 0; I < Iters; ++I)
|
||||
@ -262,8 +262,8 @@ TEST(JITMemoryManagerTest, TestManyStubs) {
|
||||
size_t Size = 128;
|
||||
int Iters = (SlabSize / Size) + 1;
|
||||
|
||||
// We should start with one slab.
|
||||
EXPECT_EQ(1U, MemMgr->GetNumStubSlabs());
|
||||
// We should start with no slabs.
|
||||
EXPECT_EQ(0U, MemMgr->GetNumDataSlabs());
|
||||
|
||||
// After allocating a bunch of stubs, we should have two.
|
||||
for (int I = 0; I < Iters; ++I)
|
||||
|
Loading…
Reference in New Issue
Block a user