comparison src/share/vm/classfile/classFileParser.cpp @ 856:75596850f863

6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics Summary: remove useless lazy evaluation of intrinsics; add LAST_COMPILER_INLINE to help categorize them Reviewed-by: kvn
author jrose
date Tue, 21 Jul 2009 16:56:06 -0700
parents e5b0439ef4ae
children 494244ae0171
comparison
equal deleted inserted replaced
854:606c988ff684 856:75596850f863
3229 this_klass->set_methods_default_annotations(methods_default_annotations()); 3229 this_klass->set_methods_default_annotations(methods_default_annotations());
3230 3230
3231 this_klass->set_minor_version(minor_version); 3231 this_klass->set_minor_version(minor_version);
3232 this_klass->set_major_version(major_version); 3232 this_klass->set_major_version(major_version);
3233 3233
3234 // Set up methodOop::intrinsic_id as soon as we know the names of methods.
3235 // (We used to do this lazily, but now we query it in Rewriter,
3236 // which is eagerly done for every method, so we might as well do it now,
3237 // when everything is fresh in memory.)
3238 if (methodOopDesc::klass_id_for_intrinsics(this_klass->as_klassOop()) != vmSymbols::NO_SID) {
3239 for (int j = 0; j < methods->length(); j++) {
3240 ((methodOop)methods->obj_at(j))->init_intrinsic_id();
3241 }
3242 }
3243
3234 if (cached_class_file_bytes != NULL) { 3244 if (cached_class_file_bytes != NULL) {
3235 // JVMTI: we have an instanceKlass now, tell it about the cached bytes 3245 // JVMTI: we have an instanceKlass now, tell it about the cached bytes
3236 this_klass->set_cached_class_file(cached_class_file_bytes, 3246 this_klass->set_cached_class_file(cached_class_file_bytes,
3237 cached_class_file_length); 3247 cached_class_file_length);
3238 } 3248 }