< prev index next >

src/hotspot/share/opto/bytecodeInfo.cpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 75,86 **** /** * Return true when EA is ON and a java constructor is called or * a super constructor is called from an inlined java constructor. * Also return true for boxing methods. - * Also return true for methods returning Iterator (including Iterable::iterator()) - * that is essential for forall-loops performance. */ static bool is_init_with_ea(ciMethod* callee_method, ciMethod* caller_method, Compile* C) { if (!C->do_escape_analysis() || !EliminateAllocations) { return false; // EA is off --- 75,84 ----
*** 94,108 **** return true; // super constructor is called from inlined constructor } if (C->eliminate_boxing() && callee_method->is_boxing_method()) { return true; } - ciType *retType = callee_method->signature()->return_type(); - ciKlass *iter = C->env()->Iterator_klass(); - if(retType->is_loaded() && iter->is_loaded() && retType->is_subtype_of(iter)) { - return true; - } return false; } /** * Force inlining unboxing accessor. --- 92,101 ----
< prev index next >