Skip to content

Commit e6fae2e

Browse files
committed
Fix #4263
1 parent 0c697df commit e6fae2e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

include/swoole_memory.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
//-------------------memory manager-------------------------
2323
namespace swoole {
2424

25+
#pragma pack(8)
26+
2527
class MemoryPool {
2628
public:
2729
virtual ~MemoryPool(){};

src/memory/global_memory.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ struct GlobalMemoryImpl {
3939

4040
struct MemoryBlock {
4141
uint32_t size;
42+
uint32_t reserved;
4243
char memory[0];
4344
};
4445

0 commit comments

Comments
 (0)