1024768); pthread_create(&worker_thread, &attr, some_function); } 编译期调整栈大小 指定 LDFLAGS 比如 -Wl,-z,stack-size
文件中配置了合约编译时的一些配置信息, config文件内容如下: [target.wasm32-unknown-unknown] rustflags = [ "-C", "link-args=-z stack-size
normal-concurrency = 4 low-concurrency = 4 max-tasks-high = 8000 max-tasks-normal = 8000 max-tasks-low = 8000 stack-size normal-concurrency = 38 low-concurrency = 38 max-tasks-high = 76000 max-tasks-normal = 76000 max-tasks-low = 76000 stack-size
strtoul(optarg, NULL, 0); break; default: fprintf(stderr, "Usage: %s [-s stack-size / int s; attrp = NULL; /* If a command-line argument was supplied, use it to set the stack-size