comparison src/share/vm/oops/instanceKlass.cpp @ 7154:5d0bb7d52783

changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
author Doug Simon <doug.simon@oracle.com>
date Wed, 12 Dec 2012 21:36:40 +0100
parents 2cb439954abf
children 291ffc492eb6
comparison
equal deleted inserted replaced
7153:c421c19b7bf8 7154:5d0bb7d52783
2159 } 2159 }
2160 } 2160 }
2161 2161
2162 void InstanceKlass::clean_method_data(BoolObjectClosure* is_alive) { 2162 void InstanceKlass::clean_method_data(BoolObjectClosure* is_alive) {
2163 #if defined(COMPILER2) || defined(GRAAL) 2163 #if defined(COMPILER2) || defined(GRAAL)
2164 // Currently only used by C2. 2164 // Currently only used by C2 and Graal
2165 for (int m = 0; m < methods()->length(); m++) { 2165 for (int m = 0; m < methods()->length(); m++) {
2166 MethodData* mdo = methods()->at(m)->method_data(); 2166 MethodData* mdo = methods()->at(m)->method_data();
2167 if (mdo != NULL) { 2167 if (mdo != NULL) {
2168 for (ProfileData* data = mdo->first_data(); 2168 for (ProfileData* data = mdo->first_data();
2169 mdo->is_valid(data); 2169 mdo->is_valid(data);