Skip to content

Add recursion_guard_outer() for use in hashing mutable objects.#811

Merged
timfel merged 4 commits intotopazproject:masterfrom
jerith:jerith/recursion-guard-outer
Mar 4, 2017
Merged

Add recursion_guard_outer() for use in hashing mutable objects.#811
timfel merged 4 commits intotopazproject:masterfrom
jerith:jerith/recursion-guard-outer

Conversation

@jerith
Copy link
Copy Markdown
Contributor

@jerith jerith commented Jul 20, 2013

This is an updated PR to replace #460.

Comment thread lib-topaz/thread.rb Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldnt' be exposed on the public Thread object.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thread.recursion_guard is already exposed, unless there's some magic that limits the visibility of methods implemented in rpython. We need to call this from recursive methods on Array and Hash, so it needs to be visible there at least.

Comment thread lib-topaz/topaz.rb
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're moving stuff anyway, I think we should have all recursion_guard methods on Topaz (or Topaz::Thread, I don't really mind). But with this, we have Topaz.recursion_guard_outer and Thread#recursion_guard - there just shouldn't be two places for this.

@timfel timfel merged commit e80bb2c into topazproject:master Mar 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants