Skip to content

Commit

Permalink
Fix incorrectly initializing win32 fiber stack (#8513)
Browse files Browse the repository at this point in the history
  • Loading branch information
firejox authored and RX14 committed Nov 29, 2019
1 parent 83e3862 commit aeca188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fiber/context/x86_64-microsoft.cr
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class Fiber

# The following two values are stored in the Thread Information Block (NT_TIB)
# and are used by Windows to track the current stack limits
stack_ptr[-2] = @stack_bottom # %gs:0x08: Stack Bottom
stack_ptr[-3] = @stack # %gs:0x10: Stack Limit
stack_ptr[-2] = @stack # %gs:0x10: Stack Limit
stack_ptr[-3] = @stack_bottom # %gs:0x08: Stack Base
end

# :nodoc:
Expand Down

0 comments on commit aeca188

Please sign in to comment.