Merge 11.2 into 11.4

This commit is contained in:
Marko Mäkelä 2024-10-03 14:32:14 +03:00
commit b53b81e937
560 changed files with 5791 additions and 1393 deletions

View file

@ -57,8 +57,7 @@ void *pfs_malloc(PFS_builtin_memory_class *klass, size_t size, myf)
void pfs_free(PFS_builtin_memory_class *, size_t, void *ptr)
{
if (ptr != NULL)
aligned_free(ptr);
aligned_free(ptr);
}
void *pfs_malloc_array(PFS_builtin_memory_class *klass, size_t n, size_t size, myf flags)

View file

@ -23,21 +23,23 @@
#include <my_global.h>
#include <my_sys.h>
#include <pfs_global.h>
#include "aligned.h"
#include "assume_aligned.h"
bool pfs_initialized= false;
void *pfs_malloc(PFS_builtin_memory_class *klass, size_t size, myf flags)
{
void *ptr= malloc(size);
size= MY_ALIGN(size, CPU_LEVEL1_DCACHE_LINESIZE);
void *ptr= aligned_malloc(size, CPU_LEVEL1_DCACHE_LINESIZE);
if (ptr && (flags & MY_ZEROFILL))
memset(ptr, 0, size);
memset_aligned<CPU_LEVEL1_DCACHE_LINESIZE>(ptr, 0, size);
return ptr;
}
void pfs_free(PFS_builtin_memory_class *, size_t, void *ptr)
{
if (ptr != NULL)
free(ptr);
aligned_free(ptr);
}
void *pfs_malloc_array(PFS_builtin_memory_class *klass, size_t n, size_t size, myf flags)