@@ -246,9 +246,6 @@ bool ConnectionGraph::compute_escape() {
246
246
if (n->is_Allocate ()) {
247
247
n->as_Allocate ()->_is_non_escaping = noescape;
248
248
}
249
- if (n->is_CallStaticJava ()) {
250
- n->as_CallStaticJava ()->_is_non_escaping = noescape;
251
- }
252
249
if (noescape && ptn->scalar_replaceable ()) {
253
250
adjust_scalar_replaceable_state (ptn);
254
251
if (ptn->scalar_replaceable ()) {
@@ -3068,11 +3065,6 @@ void ConnectionGraph::split_unique_types(GrowableArray<Node *> &alloc_worklist,
3068
3065
// so it could be eliminated if it has no uses.
3069
3066
alloc->as_Allocate ()->_is_scalar_replaceable = true ;
3070
3067
}
3071
- if (alloc->is_CallStaticJava ()) {
3072
- // Set the scalar_replaceable flag for boxing method
3073
- // so it could be eliminated if it has no uses.
3074
- alloc->as_CallStaticJava ()->_is_scalar_replaceable = true ;
3075
- }
3076
3068
continue ;
3077
3069
}
3078
3070
if (!n->is_CheckCastPP ()) { // not unique CheckCastPP.
@@ -3121,11 +3113,6 @@ void ConnectionGraph::split_unique_types(GrowableArray<Node *> &alloc_worklist,
3121
3113
// so it could be eliminated.
3122
3114
alloc->as_Allocate ()->_is_scalar_replaceable = true ;
3123
3115
}
3124
- if (alloc->is_CallStaticJava ()) {
3125
- // Set the scalar_replaceable flag for boxing method
3126
- // so it could be eliminated.
3127
- alloc->as_CallStaticJava ()->_is_scalar_replaceable = true ;
3128
- }
3129
3116
set_escape_state (ptnode_adr (n->_idx ), es); // CheckCastPP escape state
3130
3117
// in order for an object to be scalar-replaceable, it must be:
3131
3118
// - a direct allocation (not a call returning an object)
0 commit comments