Skip to content
Snippets Groups Projects
Commit 25030892 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Merge branch 'master' of github.com:tarantool/tarantool

parents e4acc240 1530f6aa
No related branches found
No related tags found
No related merge requests found
#include "small/slab_cache.h"
#include "small/quota.h"
#include <stdio.h>
#include <limits.h>
#include <stdlib.h>
......@@ -13,10 +14,13 @@ int main()
{
srand(time(0));
struct quota quota;
struct slab_arena arena;
struct slab_cache cache;
slab_arena_create(&arena, 0, UINT_MAX, 4000000, MAP_PRIVATE);
quota_init(&quota, UINT_MAX);
slab_arena_create(&arena, &quota, 0, 4000000, MAP_PRIVATE);
slab_cache_create(&cache, &arena, 0);
int i = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment