Skip to content

Commit

Permalink
Fix #4263
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Jul 9, 2021
1 parent 0c697df commit e6fae2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/swoole_memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
//-------------------memory manager-------------------------
namespace swoole {

#pragma pack(8)

class MemoryPool {
public:
virtual ~MemoryPool(){};
Expand Down
1 change: 1 addition & 0 deletions src/memory/global_memory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ struct GlobalMemoryImpl {

struct MemoryBlock {
uint32_t size;
uint32_t reserved;
char memory[0];
};

Expand Down

0 comments on commit e6fae2e

Please sign in to comment.