You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiled with -Ylog:specialize -Ydebug it generates different bytecode than what would otherwise be created. Here is a diff of the Bar$mcI$sp bytecode I generated using "javap -c 'Bar$mcI$sp'":
As you can see, two extra methods are being created.
I think that scalac should be generating these methods in all cases, so as you can imagine I'm quite interested in why they only get generated when doing debugging!
I will comment on this ticket as I learn more.
The text was updated successfully, but these errors were encountered:
Here's a pretty simple program:
When compiled with -Ylog:specialize -Ydebug it generates different bytecode than what would otherwise be created. Here is a diff of the Bar$mcI$sp bytecode I generated using "javap -c 'Bar$mcI$sp'":
As you can see, two extra methods are being created.
I think that scalac should be generating these methods in all cases, so as you can imagine I'm quite interested in why they only get generated when doing debugging!
I will comment on this ticket as I learn more.
The text was updated successfully, but these errors were encountered: