8175883: bytecode generated for the enhanced for loop may block memory garbage collecting
Reviewed-by: mcimadamore
/* /nodynamiccopyright/ */
public class TestCaseForEach {
@AliveRange(varName="o", bytecodeStart=25, bytecodeLength=11)
@AliveRange(varName="o", bytecodeStart=44, bytecodeLength=1)
void m(String[] args) {
Object o;
for (String s : args) {
o = "";
o.hashCode();
}
o = "";
}
}