mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 14:28:30 +00:00
Avoid an --ftrace crash on Windows
This commit is contained in:
parent
dcf9596620
commit
ad11fc32ad
3 changed files with 24 additions and 11 deletions
|
@ -69,9 +69,8 @@ uintptr_t GetStackBottom(void) pureconst;
|
|||
* will also trigger the stack to grow down safely.
|
||||
*/
|
||||
forceinline void CheckLargeStackAllocation(void *p, ssize_t n) {
|
||||
for (; n > 0; n -= 4096) {
|
||||
((char *)p)[n - 1] = 0;
|
||||
}
|
||||
for (; n > 0; n -= 4096)
|
||||
((volatile char *)p)[n - 1] = 0;
|
||||
}
|
||||
|
||||
void *NewCosmoStack(void) vallocesque;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue