With OSR, a compile can be initiated in a for loop, so I'd say this is still not safe if the compile can be blocking, which happens if:

    bool is_blocking = !directive->BackgroundCompilationOption || CompileTheWorld || ReplayCompiles;

So that probably means the test cannot be run with -Xcomp.

dl

On 11/8/18 3:12 PM, Daniil Titov wrote:
The proposed fix for this case is to suspend VM while the body of the "for" 
loop (lines 150 - 356) is executed while ensuring that for line 151 ( line = 
pipe.printlln()) VM is temporary resumed ( line numbers are given for an original version 
of  test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayType/newInstance/newinstance001.java)

Reply via email to