Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Stack overflow in unresolvedSuper logic from jitted code #4272
At least JRuby 220.127.116.11 and 18.104.22.168.
Attempting to run tests with
When running with threshold=0, the tests should still run.
Instead, we get the following stack overflow:
It appears that the calculation of what class to "super" up ends up with wrong results in the JIT. Specifically, in this case, Rake's
To reproduce, just check out hexapdf and run
For the record, this was introduced in 9b4e97b. The change there caused this stack overflow because it duplicated a method, stuffed it into a child class, changed its impl class to that child, and that caused it to super into itself repeatedly. This change reverts to WrapperMethod, which only serves to hold a method plus a new visibility in our method tables, and does not pass on implementationClass.