We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edc0552 commit 3e7770fCopy full SHA for 3e7770f
src/memory/global_memory.cc
@@ -104,7 +104,7 @@ void *GlobalMemory::alloc(uint32_t size) {
104
}
105
106
107
- block = (MemoryBlock *) impl->pages.back() + impl->alloc_offset;
+ block = (MemoryBlock *) (impl->pages.back() + impl->alloc_offset);
108
impl->alloc_offset += alloc_size;
109
110
block->size = size;
tests/swoole_table/create_10k_object.phpt
@@ -0,0 +1,14 @@
1
+--TEST--
2
+swoole_table: create 10,000 objects
3
+--SKIPIF--
4
+<?php require __DIR__ . '/../include/skipif.inc'; ?>
5
+--FILE--
6
+<?php
7
+require __DIR__ . '/../include/bootstrap.php';
8
+for ($i = 0; $i < 10000; $i++) {
9
+ $main = new Swoole\Table(1);
10
+}
11
+echo "DONE\n";
12
+?>
13
+--EXPECT--
14
+DONE
0 commit comments