Skip to content

Commit

Permalink
get_stack_top -> _fiber_get_stack_top
Browse files Browse the repository at this point in the history
  • Loading branch information
jhass committed May 28, 2016
1 parent a5b2f4e commit f7e92a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fiber/fiber.cr
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
require "c/sys/mman"

# :nodoc:
@[NoInline]
fun get_stack_top : Void*
fun _fiber_get_stack_top : Void*
dummy = uninitialized Int32
pointerof(dummy).as(Void*)
end
Expand Down Expand Up @@ -61,7 +62,7 @@ class Fiber
def initialize
@proc = Proc(Void).new { }
@stack = Pointer(Void).null
@stack_top = get_stack_top
@stack_top = _fiber_get_stack_top
@stack_bottom = LibGC.stackbottom

@@first_fiber = @@last_fiber = self
Expand Down

0 comments on commit f7e92a7

Please sign in to comment.