Skip to content

Some fixes, tweaks, and new tools for working with IR#6279

Merged
enebo merged 4 commits intojruby:masterfrom
chrisseaton:ir-tools
Jun 15, 2020
Merged

Some fixes, tweaks, and new tools for working with IR#6279
enebo merged 4 commits intojruby:masterfrom
chrisseaton:ir-tools

Conversation

@chrisseaton
Copy link
Contributor

Possibly best reviewed by looking at the individual commits.

When running -X-C, only print for -Xir.print once, when the threshold is met, not every time the method is called until the threshold
Don't print instructions if there aren't any and we're using BBs instead
@enebo enebo added this to the JRuby 9.3.0.0 milestone Jun 15, 2020
@enebo enebo merged commit 03a8357 into jruby:master Jun 15, 2020
@enebo
Copy link
Member

enebo commented Jun 15, 2020

d47b5da is weird but not from your change. getInstructions should never return null so the first half of that if should not exist (unless there is concurrent access and then we should ask why that is happening). The other thing which bothers me is that checking for no instructions seems like a weird mechanism for signalling it is already a full build. We should at least probably check the ic itself instead of what instrs it happens to have.

None of that involves you PR though :)

@chrisseaton chrisseaton deleted the ir-tools branch June 16, 2020 10:03
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.

2 participants