Skip to content

Commit d60d8d1

Browse files
committed
Correct dlmalloc_allocation_command arguments are bytes, not objects
1 parent 4f44905 commit d60d8d1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

include/boost/container/detail/dlmalloc.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ BOOST_CONTAINER_DECL int dlmalloc_malloc_check();
7474

7575
BOOST_CONTAINER_DECL boost_cont_command_ret_t dlmalloc_allocation_command
7676
( allocation_type command
77-
, size_t sizeof_object
78-
, size_t alignof_object
79-
, size_t limit_objects
80-
, size_t preferred_objects
81-
, size_t *received_objects
77+
, size_t sizeof_bytes
78+
, size_t alignof_bytes
79+
, size_t limit_bytess
80+
, size_t preferred_bytess
81+
, size_t *received_bytess
8282
, void *reuse_ptr
8383
);
8484

src/dlmalloc.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ BOOST_CONTAINER_DECL boost_cont_command_ret_t dlmalloc_allocation_command
8080
( allocation_type command
8181
, size_t sizeof_object
8282
, size_t alignof_object
83-
, size_t limit_objects
84-
, size_t preferred_objects
85-
, size_t *received_objects
83+
, size_t limit_bytes
84+
, size_t preferred_bytes
85+
, size_t *received_bytes
8686
, void *reuse_ptr
8787
)
88-
{ return boost_cont_allocation_command(command, sizeof_object, alignof_object, limit_objects, preferred_objects, received_objects, reuse_ptr); }
88+
{ return boost_cont_allocation_command(command, sizeof_object, alignof_object, limit_bytes, preferred_bytes, received_bytes, reuse_ptr); }
8989

9090
BOOST_CONTAINER_DECL void *dlmalloc_sync_create()
9191
{ return boost_cont_sync_create(); }

0 commit comments

Comments
 (0)