Skip to content

Commit bb522d8

Browse files
committed
Make alignment of umfMemoryProviderAlloc() more specific
The alignment of umfMemoryProviderAlloc() has to be a multiple or a divider of the minimum page size. Signed-off-by: Lukasz Dorau <[email protected]>
1 parent cfcb318 commit bb522d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/umf/memory_provider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void umfMemoryProviderDestroy(umf_memory_provider_handle_t hProvider);
4242
/// with the specified \p alignment
4343
/// @param hProvider handle to the memory provider
4444
/// @param size number of bytes to allocate
45-
/// @param alignment alignment of the allocation in bytes
45+
/// @param alignment alignment of the allocation in bytes, it has to be a multiple or a divider of the minimum page size
4646
/// @param ptr [out] pointer to the allocated memory
4747
/// @return UMF_RESULT_SUCCESS on success or appropriate error code on failure
4848
///

include/umf/memory_provider_ops.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ typedef struct umf_memory_provider_ops_t {
4545
/// with the specified \p alignment
4646
/// @param provider pointer to the memory provider
4747
/// @param size number of bytes to allocate
48-
/// @param alignment alignment of the allocation in bytes
48+
/// @param alignment alignment of the allocation in bytes, it has to be a multiple or a divider of the minimum page size
4949
/// @param ptr [out] pointer to the allocated memory
5050
/// @return UMF_RESULT_SUCCESS on success or appropriate error code on failure
5151
///

0 commit comments

Comments
 (0)