Skip to content

Commit

Permalink
Don't use ThreadLocal for now (boehm GC doesn't scan those)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ary Borenszweig committed Apr 9, 2016
1 parent d1d62a9 commit af251b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/fiber/fiber.cr
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ class Fiber
@@root
end

@[ThreadLocal]
# TODO: Boehm GC doesn't scan thread local vars, so we can't use it yet
# @[ThreadLocal]
@@current : Fiber
@@current = root

Expand Down
3 changes: 1 addition & 2 deletions src/reference.cr
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ class Reference
nil
end

# TODO: enable this once we have multiple-thread support, and fix its
# behaviour because there's currently a bug related to it
# TODO: Boehm GC doesn't scan thread local vars, so we can't use it yet
# @[ThreadLocal]
$_exec_recursive : Hash({UInt64, Symbol}, Bool)?

Expand Down

0 comments on commit af251b5

Please sign in to comment.