Skip to content

Faulty code: keep AST and source information in faulty CompiledMethod #13087

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

Merged

Conversation

privat
Copy link
Contributor

@privat privat commented Mar 21, 2023

#13084 (comment) showed that CompiledMethod>>#isFaulty (and more generally decompilation) can be unreliable if source information is not preserved for faulty methods (and doit methods).

Therefore, this PR forces the compiler to preserve this information.
While the question of source&ast persistence and efficient storage is an important one, this PR is only focussed on the reliability of faulty compiled methods.

@privat
Copy link
Contributor Author

privat commented Mar 21, 2023

Windows...

@MarcusDenker MarcusDenker merged commit 6384b9f into pharo-project:Pharo12 Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants