Skip to content
Snippets Groups Projects
Commit d81d0433 authored by David Parks's avatar David Parks
Browse files

MAINT-1503 Fix for ll_aligned_realloc returning non-aligned pointers on linux

parent c1c80133
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,11 @@ inline void* ll_aligned_realloc_16(void* ptr, size_t size) // returned hunk MUST
#elif defined(LL_DARWIN)
return realloc(ptr,size); // default osx malloc is 16 byte aligned.
#else
return realloc(ptr,size); // FIXME not guaranteed to be aligned.
//FIXME: memcpy is SLOW
void* ret = ll_aligned_malloc_16(size);
memcpy(ret, ptr, old_size);
ll_aligned_free_16(ptr);
return ret;
#endif
}
......
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