https://learn.microsoft.com/en-us/windows/win32/procthread/thread-stack-sizeTo change the initially committed stack space, use the dwStackSize parameter of the CreateThread, CreateRemoteThread, or CreateFiber function. This value is rounded up to the nearest page. Generally, the reserve size is the default reserve size specified in the executable header. However, if the initially committed size specified by dwStackSize is larger than or equal to the default reserve size, the reserve size is this new commit size rounded up to the nearest multiple of 1 MB.
这个?
【 在 hgoldfish 的大作中提到: 】
: 栈一般都是单方向增长的。所以在 linux/openbsd 里面申请内存可以指定 MAP_STACK 这个参数,操作系统就会返回一大段内存空间,但实际不占用物理内存。随着应用程序的增长,会慢慢分配。
: 那 win32api 有类似的函数吗?
--
FROM 98.45.244.*