6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "memory/resourceArea.hpp"
27 #include "oops/constantPool.inline.hpp"
28 #include "oops/oop.inline.hpp"
29 #include "oops/symbol.hpp"
30 #include "prims/methodComparator.hpp"
31 #include "runtime/handles.inline.hpp"
32 #include "utilities/globalDefinitions.hpp"
33
34 BytecodeStream *MethodComparator::_s_old;
35 BytecodeStream *MethodComparator::_s_new;
36 ConstantPool* MethodComparator::_old_cp;
37 ConstantPool* MethodComparator::_new_cp;
38
39 bool MethodComparator::methods_EMCP(Method* old_method, Method* new_method) {
40 if (old_method->code_size() != new_method->code_size())
41 return false;
42 if (check_stack_and_locals_size(old_method, new_method) != 0) {
43 if (log_is_enabled(Debug, redefine, class, methodcomparator)) {
44 ResourceMark rm;
45 log_debug(redefine, class, methodcomparator)
|
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "logging/log.hpp"
27 #include "memory/resourceArea.hpp"
28 #include "oops/constantPool.inline.hpp"
29 #include "oops/oop.inline.hpp"
30 #include "oops/symbol.hpp"
31 #include "prims/methodComparator.hpp"
32 #include "runtime/handles.inline.hpp"
33 #include "utilities/globalDefinitions.hpp"
34
35 BytecodeStream *MethodComparator::_s_old;
36 BytecodeStream *MethodComparator::_s_new;
37 ConstantPool* MethodComparator::_old_cp;
38 ConstantPool* MethodComparator::_new_cp;
39
40 bool MethodComparator::methods_EMCP(Method* old_method, Method* new_method) {
41 if (old_method->code_size() != new_method->code_size())
42 return false;
43 if (check_stack_and_locals_size(old_method, new_method) != 0) {
44 if (log_is_enabled(Debug, redefine, class, methodcomparator)) {
45 ResourceMark rm;
46 log_debug(redefine, class, methodcomparator)
|