diff options
author | Mark D. Roth <roth@google.com> | 2018-01-22 12:51:03 -0800 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2018-01-22 12:51:03 -0800 |
commit | 62569dd9785e59a6b87a5002d09aeec1c39f541b (patch) | |
tree | b7e0fd0f075b891af60f1c6736a04ed12f77bf16 /include/grpc/support | |
parent | a9fc084ec1be4ab8f2071227d9affb77f713e0db (diff) |
Fix arena to return aligned memory.
Diffstat (limited to 'include/grpc/support')
-rw-r--r-- | include/grpc/support/alloc.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/grpc/support/alloc.h b/include/grpc/support/alloc.h index c559198237..577d4f0069 100644 --- a/include/grpc/support/alloc.h +++ b/include/grpc/support/alloc.h @@ -46,8 +46,9 @@ GPRAPI void* gpr_zalloc(size_t size); GPRAPI void gpr_free(void* ptr); /** realloc, never returns NULL */ GPRAPI void* gpr_realloc(void* p, size_t size); -/** aligned malloc, never returns NULL, will align to 1 << alignment_log */ -GPRAPI void* gpr_malloc_aligned(size_t size, size_t alignment_log); +/** aligned malloc, never returns NULL, will align to alignment, which + * must be a power of 2. */ +GPRAPI void* gpr_malloc_aligned(size_t size, size_t alignment); /** free memory allocated by gpr_malloc_aligned */ GPRAPI void gpr_free_aligned(void* ptr); |