Tue, 02 Dec 2014 12:24:31 -0800
8066199: C2 escape analysis prevents VM from exiting quickly
Summary: Check for safepoint and block during EA Connection graph construction.
Reviewed-by: roland, vlivanov, shade
src/share/vm/opto/escape.cpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/vm/opto/escape.cpp Tue Dec 02 15:01:01 2014 -0800 1.2 +++ b/src/share/vm/opto/escape.cpp Tue Dec 02 12:24:31 2014 -0800 1.3 @@ -1106,6 +1106,9 @@ 1.4 // Each 4 iterations calculate how much time it will take 1.5 // to complete graph construction. 1.6 time.stop(); 1.7 + // Poll for requests from shutdown mechanism to quiesce compiler 1.8 + // because Connection graph construction may take long time. 1.9 + CompileBroker::maybe_block(); 1.10 double stop_time = time.seconds(); 1.11 double time_per_iter = (stop_time - start_time) / (double)SAMPLE_SIZE; 1.12 double time_until_end = time_per_iter * (double)(java_objects_length - next);