Make RAM infinite in POSIX env

Since the calculation that's being used right now isn't too acurate
anyways, let's just get rid of it, maybe we'll find more memory-related
bugs.

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial 2020-01-21 13:37:06 +01:00
parent adc52ba71e
commit ecbb5cbc1b

2
env/posix/ocf_env.h vendored
View File

@ -180,7 +180,7 @@ static inline void env_secure_free(const void *ptr, size_t size)
static inline uint64_t env_get_free_memory(void)
{
return sysconf(_SC_PAGESIZE) * sysconf(_SC_AVPHYS_PAGES);
return (uint64_t)(-1);
}
/* ALLOCATOR */