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:
parent
adc52ba71e
commit
ecbb5cbc1b
2
env/posix/ocf_env.h
vendored
2
env/posix/ocf_env.h
vendored
@ -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)
|
static inline uint64_t env_get_free_memory(void)
|
||||||
{
|
{
|
||||||
return sysconf(_SC_PAGESIZE) * sysconf(_SC_AVPHYS_PAGES);
|
return (uint64_t)(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ALLOCATOR */
|
/* ALLOCATOR */
|
||||||
|
Loading…
Reference in New Issue
Block a user