[5GC/EPC] tested with concurrent 500 UEs (#949)

Fix the memory problem in many simulatneous connections test
This commit is contained in:
Sukchan Lee 2021-04-29 22:01:34 +09:00
parent 03e74c93e8
commit a58214da76
26 changed files with 205 additions and 146 deletions

View file

@ -146,9 +146,18 @@ static void *internal_realloc(void *pointer, size_t size)
#endif
#else
#include "ogs-core.h"
#define internal_malloc ogs_malloc
#define internal_free ogs_free
#define internal_realloc ogs_realloc
static void *internal_malloc(size_t size)
{
return ogs_malloc(size);
}
static void internal_free(void *pointer)
{
ogs_free(pointer);
}
static void *internal_realloc(void *pointer, size_t size)
{
return ogs_realloc(pointer, size);
}
#endif
static internal_hooks global_hooks = { internal_malloc, internal_free, internal_realloc };