Skip to content

Commit

Permalink
mempool
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieMonroe committed Aug 12, 2013
1 parent aa6ab95 commit 8734f30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/libunwind_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static inline void mark_as_used(void *v UNUSED) {
#endif
#define GET_MEMORY(mem, size, type) \
do { \
mem = malloc(size, type, M_WAITOK) \
mem = malloc(size, type, M_WAITOK); \
} while (0)

#define unwi_find_dynamic_proc_info UNWI_OBJ(find_dynamic_proc_info)
Expand Down
2 changes: 1 addition & 1 deletion mempool.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ HIDDEN void
mempool_init (struct mempool *pool, size_t obj_size, size_t reserve)
{
if (pg_size == 0)
pg_size = getpagesize ();
pg_size = PAGE_SIZE;

memset (pool, 0, sizeof (*pool));

Expand Down

0 comments on commit 8734f30

Please sign in to comment.