Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/crystal/system/win32/fiber.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ require "c/winnt"
module Crystal::System::Fiber
# stack size in bytes needed for last-minute error handling in case of a stack
# overflow
RESERVED_STACK_SIZE = LibC::DWORD.new(0x10000)
# FIXME: use `LibC::DWORD` explicitly (#15820)
RESERVED_STACK_SIZE = 0x10000_u32

def self.allocate_stack(stack_size, protect) : Void*
if stack_top = LibC.VirtualAlloc(nil, stack_size, LibC::MEM_RESERVE, LibC::PAGE_READWRITE)
Expand Down
Loading