8066199: C2 escape analysis prevents VM from exiting quickly

Tue, 02 Dec 2014 12:24:31 -0800

author
kvn
date
Tue, 02 Dec 2014 12:24:31 -0800
changeset 7402
f913964f3fde
parent 7401
a8ebd6f1b030
child 7403
3f4a5fdca318
child 7404
d4caf9c96afd

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);

mercurial