test/langtools/tools/javac/flow/tests/TestCaseForEach.java
author vromero
Mon, 20 Nov 2017 17:07:21 -0500
changeset 47864 e29ae57c6421
parent 47216 71c04702a3d5
child 48082 d8c634b016c6
permissions -rw-r--r--
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 = "";
    }
}