Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #6692. AIOOBE on evals overflowing closure ids. #6704

Merged
merged 4 commits into from Jun 4, 2021

Conversation

enebo
Copy link
Member

@enebo enebo commented Jun 4, 2021

This has two pieces:

  1. Evals only live as a scope as long as they execute. They should not
    be asking the lexical scope they are called in for an id. This is likely
    a portion (or all) of the original reporters problem.

  2. Closures in evals should be given out scope ids relative to the eval.
    These were going to the eval and then the evals getScopeID would ask its
    lexical parent for an ID (which is the scope outside the eval).

This has two pieces:
  1. Evals only live as a scope as long as they execute.  They should not
  be asking the lexical scope they are called in for an id.  This is likely
  a portion (or all) of the original reporters problem.

  2. Closures in evals should be given out scope ids relative to the eval.
  These were going to the eval and then the evals getScopeID would ask its
  lexical parent for an ID (which is the scope outside the eval).
@enebo enebo changed the base branch from master to jruby-9.2 June 4, 2021 19:34
@enebo enebo added this to the JRuby 9.2.18.0 milestone Jun 4, 2021
@enebo enebo merged commit f3ea266 into jruby:jruby-9.2 Jun 4, 2021
@enebo enebo deleted the fix_closure_id branch June 4, 2021 21:10
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.

None yet

1 participant