Home
last modified time | relevance | path

Searched refs:blocks (Results 1 – 4 of 4) sorted by relevance

/unit/src/
H A Dnxt_unicode_lowcase.pl11 my %blocks;
19 $blocks{int($symbol / BLOCK_SIZE)} = 1;
31 for my $block (sort { $a <=> $b } keys %blocks) {
38 my $blocks = scalar keys %blocks;
44 $blocks, BLOCK_SIZE, $max_block + 1,
45 ($blocks - 1) * BLOCK_SIZE * 4 + $last_block_size + $max_block * 4,
46 ($blocks - 1) * BLOCK_SIZE * 4 + $last_block_size+ $max_block * 8);
52 for my $block (sort { $a <=> $b } keys %blocks) {
80 if (exists($blocks{$block})) {
H A Dnxt_mp.c104 nxt_rbtree_t blocks; member
276 nxt_rbtree_init(&mp->blocks, nxt_mp_rbtree_compare); in nxt_mp_create()
329 next = nxt_rbtree_root(&mp->blocks); in nxt_mp_destroy()
331 while (next != nxt_rbtree_sentinel(&mp->blocks)) { in nxt_mp_destroy()
333 node = nxt_rbtree_destroy_next(&mp->blocks, &next); in nxt_mp_destroy()
384 return (nxt_rbtree_is_empty(&mp->blocks) in nxt_mp_is_empty()
702 nxt_rbtree_insert(&mp->blocks, &cluster->node); in nxt_mp_alloc_cluster()
757 nxt_rbtree_insert(&mp->blocks, &block->node); in nxt_mp_alloc_large()
793 block = nxt_mp_find_block(&mp->blocks, p); in nxt_mp_free()
807 nxt_rbtree_delete(&mp->blocks, &block->node); in nxt_mp_free()
[all …]
/unit/src/test/
H A Dnxt_mem_zone_test.c15 void *start, **blocks; in nxt_mem_zone_test() local
38 blocks = nxt_malloc(nblocks * sizeof(void *)); in nxt_mem_zone_test()
39 if (blocks == NULL) { in nxt_mem_zone_test()
53 blocks[n] = nxt_mem_zone_alloc(zone, size & max_size); in nxt_mem_zone_test()
55 if (blocks[n] == NULL) { in nxt_mem_zone_test()
63 nxt_mem_zone_free(zone, blocks[n]); in nxt_mem_zone_test()
67 nxt_free(blocks); in nxt_mem_zone_test()
H A Dnxt_mp_test.c15 void **blocks; in nxt_mp_test() local
31 blocks = nxt_malloc(nblocks * sizeof(void *)); in nxt_mp_test()
32 if (blocks == NULL) { in nxt_mp_test()
63 blocks[n] = nxt_mp_alloc(mp, size); in nxt_mp_test()
65 if (blocks[n] == NULL) { in nxt_mp_test()
73 nxt_mp_free(mp, blocks[n]); in nxt_mp_test()
84 nxt_free(blocks); in nxt_mp_test()