comparison src/share/vm/interpreter/interpreterRuntime.hpp @ 10105:aeaca88565e6

8010862: The Method counter fields used for profiling can be allocated lazily. Summary: Allocate the method's profiling related metadata until they are needed. Reviewed-by: coleenp, roland
author jiangli
date Tue, 09 Apr 2013 17:17:41 -0400
parents f34d701e952e
children 40b8c383bc31 ca0165daa6ec
comparison
equal deleted inserted replaced
9055:dcdeb150988c 10105:aeaca88565e6
1 /* 1 /*
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
167 static void profile_method(JavaThread* thread); 167 static void profile_method(JavaThread* thread);
168 static void update_mdp_for_ret(JavaThread* thread, int bci); 168 static void update_mdp_for_ret(JavaThread* thread, int bci);
169 #ifdef ASSERT 169 #ifdef ASSERT
170 static void verify_mdp(Method* method, address bcp, address mdp); 170 static void verify_mdp(Method* method, address bcp, address mdp);
171 #endif // ASSERT 171 #endif // ASSERT
172 static MethodCounters* build_method_counters(JavaThread* thread, Method* m);
172 }; 173 };
173 174
174 175
175 class SignatureHandlerLibrary: public AllStatic { 176 class SignatureHandlerLibrary: public AllStatic {
176 public: 177 public: