--- old/src/hotspot/share/opto/escape.cpp 2020-07-12 22:24:35.955375017 +0200 +++ new/src/hotspot/share/opto/escape.cpp 2020-07-12 22:24:35.535374216 +0200 @@ -343,6 +343,7 @@ return has_non_escaping_obj; } +// Returns true if an object in the scope of sfn does not escape globally. bool ConnectionGraph::has_not_global_escape_in_scope(SafePointNode* sfn) { Compile* C = _compile; for (JVMState* jvms = sfn->jvms(); jvms != NULL; jvms = jvms->caller()) { @@ -372,6 +373,8 @@ return false; } +// Returns true if at least one of the arguments to the call is an object +// that does not escape globally. bool ConnectionGraph::has_arg_escape(CallJavaNode* call) { if (call->method() != NULL) { uint max_idx = TypeFunc::Parms + call->method()->arg_size();