Home | History | Annotate | Download | only in unit

Lines Matching refs:pageslab

105 	 * arena, *not* the arena ind of the pageslab allocator.
126 hpdata_t pageslab;
128 &pageslab, PAGESLAB_ADDR, PAGESLAB_AGE, /* is_huge */ false);
146 hpdata_t pageslab;
148 &pageslab, PAGESLAB_ADDR, PAGESLAB_AGE, /* is_huge */ false);
156 test_psset_alloc_new(&psset, &pageslab, &alloc[0], PAGE);
168 /* The pageslab, and thus psset, should now have no allocations. */
183 hpdata_t pageslab;
185 &pageslab, PAGESLAB_ADDR, PAGESLAB_AGE, /* is_huge */ false);
193 test_psset_alloc_new(&psset, &pageslab, &alloc[0], PAGE);
206 expect_ptr_null(ps, "Nonempty pageslab evicted");
223 expect_ptr_null(ps, "Nonempty pageslab evicted");
240 expect_ptr_null(ps, "Nonempty pageslab evicted");
244 * middle of the pageslab. Index 11 should be right before such a hole
249 expect_ptr_null(ps, "Nonempty pageslab evicted");
260 expect_ptr_null(ps, "Nonempty pageslab evicted");
262 expect_ptr_null(ps, "Nonempty pageslab evicted");
279 hpdata_t pageslab;
281 &pageslab, PAGESLAB_ADDR, PAGESLAB_AGE, /* is_huge */ false);
290 test_psset_alloc_new(&psset, &pageslab, &alloc[0], PAGE);
300 expect_ptr_null(ps, "Nonempty pageslab evicted");
303 expect_ptr_eq(&pageslab, ps, "Empty pageslab not evicted.");
317 hpdata_t pageslab[2];
319 &pageslab[0], PAGESLAB_ADDR, PAGESLAB_AGE, /* is_huge */ false);
320 hpdata_init(&pageslab[1], (void *)((uintptr_t)PAGESLAB_ADDR + HUGEPAGE),
332 test_psset_alloc_new(&psset, &pageslab[0], &alloc[0][0], PAGE);
334 test_psset_alloc_new(&psset, &pageslab[1], &alloc[1][0], PAGE);
344 assert_ptr_eq(&pageslab[i], edata_ps_get(&alloc[i][j]),
360 expect_ptr_eq(&pageslab[1], edata_ps_get(&alloc[0][0]),
361 "Should have picked the fuller pageslab");
383 hpdata_t pageslab;
385 &pageslab, PAGESLAB_ADDR, PAGESLAB_AGE, /* is_huge */ false);
396 test_psset_alloc_new(&psset, &pageslab, &alloc[0], PAGE);
422 * Last test_psset_dalloc call removed empty pageslab from psset, so
427 test_psset_alloc_new(&psset, &pageslab, &alloc[0], PAGE);
432 psset_update_begin(&psset, &pageslab);
437 psset_update_end(&psset, &pageslab);
450 hpdata_t pageslab;
452 &pageslab, PAGESLAB_ADDR, PAGESLAB_AGE, /* is_huge */ false);
465 test_psset_alloc_new(&psset, &pageslab, &alloc[0], PAGE);
579 hpdata_t pageslab;
581 &pageslab, PAGESLAB_ADDR, PAGESLAB_AGE, /* is_huge */ false);
590 test_psset_alloc_new(&psset, &pageslab, &alloc[0], PAGE);
607 test_psset_alloc_new(&psset, &pageslab, &alloc[0], PAGE);
609 psset_update_begin(&psset, &pageslab);
611 psset_update_end(&psset, &pageslab);
628 init_test_pageslabs(psset_t *psset, hpdata_t *pageslab,
632 hpdata_init(pageslab, (void *)(10 * HUGEPAGE), PAGESLAB_AGE,
635 * This pageslab would be better from an address-first-fit POV, but
644 test_psset_alloc_new(psset, pageslab, &alloc[0], PAGE);
649 expect_ptr_eq(pageslab, edata_ps_get(&alloc[i]),
650 "Allocated from the wrong pageslab");
656 "Allocated from the wrong pageslab");
666 "Allocated from the wrong pageslab");
669 /* Deallocate the last page from the older pageslab. */
682 hpdata_t pageslab;
688 &psset, &pageslab, &worse_pageslab, alloc, worse_alloc);
690 /* The edata should come from the better pageslab. */
695 expect_ptr_eq(&pageslab, edata_ps_get(&test_edata),
696 "Allocated from the wrong pageslab");
711 hpdata_t pageslab;
717 &psset, &pageslab, &worse_pageslab, alloc, worse_alloc);
720 psset_update_begin(&psset, &pageslab);
733 expect_ptr_null(ps, "Incorrect eviction of nonempty pageslab");
734 psset_update_end(&psset, &pageslab);
737 expect_ptr_eq(&pageslab, edata_ps_get(&alloc[HUGEPAGE_PAGES - 1]),
744 psset_update_begin(&psset, &pageslab);