changeset 7501:1266b02f32fe

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
author kvn
date Tue, 02 Dec 2014 12:24:31 -0800
parents 9cd872c1370e
children eb22c5aab09c 80871303480c
files src/share/vm/opto/escape.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/escape.cpp	Tue Dec 02 12:37:01 2014 +0300
+++ b/src/share/vm/opto/escape.cpp	Tue Dec 02 12:24:31 2014 -0800
@@ -1115,6 +1115,9 @@
           // Each 4 iterations calculate how much time it will take
           // to complete graph construction.
           time.stop();
+          // Poll for requests from shutdown mechanism to quiesce compiler
+          // because Connection graph construction may take long time.
+          CompileBroker::maybe_block();
           double stop_time = time.seconds();
           double time_per_iter = (stop_time - start_time) / (double)SAMPLE_SIZE;
           double time_until_end = time_per_iter * (double)(java_objects_length - next);