Is it worth to use the bipush opcode for booleans instead of iconst?

Tagir Valeev amaembo at
Wed Apr 6 15:15:07 UTC 2022

Why emitting two bytes when it's possible to emit only one?

ср, 6 апр. 2022 г., 20:34 Julian Waters <tanksherman27 at>:

> Quick question, would it be better for javac to compile booleans to use
> bipush, instead of the current iconst?
> best regards,
> Julian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the compiler-dev mailing list