提交 a4edb70a 编写于 作者: K kvn

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
上级 12970c5d
...@@ -1106,6 +1106,9 @@ bool ConnectionGraph::complete_connection_graph( ...@@ -1106,6 +1106,9 @@ bool ConnectionGraph::complete_connection_graph(
// Each 4 iterations calculate how much time it will take // Each 4 iterations calculate how much time it will take
// to complete graph construction. // to complete graph construction.
time.stop(); 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 stop_time = time.seconds();
double time_per_iter = (stop_time - start_time) / (double)SAMPLE_SIZE; double time_per_iter = (stop_time - start_time) / (double)SAMPLE_SIZE;
double time_until_end = time_per_iter * (double)(java_objects_length - next); double time_until_end = time_per_iter * (double)(java_objects_length - next);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册