-
-
Notifications
You must be signed in to change notification settings - Fork 921
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Retype these cache fields to provide better type information.
I do not know if a JVM can do this, but knowing that the fields on ThreadContext are final, and you're always accessing e.g. context.tru, and context.tru is always truthy, there may be cases that can fold away. Maybe. In any case, this found a bug in RubyGlobal where an object that could never be nil was being compared to nil.
- Loading branch information
Showing
2 changed files
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters