Mercurial > hg > graal-jvmci-8
comparison src/share/vm/interpreter/interpreterRuntime.hpp @ 2118:dd031b2226de
4930919: race condition in MDO creation at back branch locations
Summary: Reuse set_method_data_for_bcp() to setup mdp after MDO creation.
Reviewed-by: kvn, never
author | iveresov |
---|---|
date | Mon, 10 Jan 2011 18:46:29 -0800 |
parents | f95d63e2154a |
children | 633a44a9fc45 |
comparison
equal
deleted
inserted
replaced
2117:70427f06ea47 | 2118:dd031b2226de |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2011, 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. |
162 // Interpreter's frequency counter overflow | 162 // Interpreter's frequency counter overflow |
163 static nmethod* frequency_counter_overflow(JavaThread* thread, address branch_bcp); | 163 static nmethod* frequency_counter_overflow(JavaThread* thread, address branch_bcp); |
164 | 164 |
165 // Interpreter profiling support | 165 // Interpreter profiling support |
166 static jint bcp_to_di(methodOopDesc* method, address cur_bcp); | 166 static jint bcp_to_di(methodOopDesc* method, address cur_bcp); |
167 static jint profile_method(JavaThread* thread, address cur_bcp); | 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(methodOopDesc* method, address bcp, address mdp); | 170 static void verify_mdp(methodOopDesc* method, address bcp, address mdp); |
171 #endif // ASSERT | 171 #endif // ASSERT |
172 }; | 172 }; |