3 ms·
Yet the compiler writers care only about the language spec, and you can bet that failing to optimize this as dead code would be considered a compiler bug. This
by lpapez 3y ago
Yet the compiler writers care only about the language spec, and you can bet that failing to optimize this as dead code would be considered a compiler bug.
This goes not only for Java compiler, but many other languages as well.
- hardware2win 3y agoSometimes compiler engineers try to be too smart and they end up creating a mess :) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=8537 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=8537 >When optimizing code for "dead store removal" the optimizing compiler may remove code necessary for security.
- guappa 3y agoI'm going to point out that the bug is marked " RESOLVED INVALID "
- hardware2win 3y agoPolitical thing, but bug created by removal is real :)