src/share/vm/classfile/classFileParser.cpp

changeset 1314
494244ae0171
parent 1310
6a93908f268f
parent 1291
75596850f863
child 1373
b37c246bf7ce
child 1408
ad6585fd4087
equal deleted inserted replaced
1313:abe076e3636f 1314:494244ae0171
3235 this_klass->set_methods_default_annotations(methods_default_annotations()); 3235 this_klass->set_methods_default_annotations(methods_default_annotations());
3236 3236
3237 this_klass->set_minor_version(minor_version); 3237 this_klass->set_minor_version(minor_version);
3238 this_klass->set_major_version(major_version); 3238 this_klass->set_major_version(major_version);
3239 3239
3240 // Set up methodOop::intrinsic_id as soon as we know the names of methods.
3241 // (We used to do this lazily, but now we query it in Rewriter,
3242 // which is eagerly done for every method, so we might as well do it now,
3243 // when everything is fresh in memory.)
3244 if (methodOopDesc::klass_id_for_intrinsics(this_klass->as_klassOop()) != vmSymbols::NO_SID) {
3245 for (int j = 0; j < methods->length(); j++) {
3246 ((methodOop)methods->obj_at(j))->init_intrinsic_id();
3247 }
3248 }
3249
3240 if (cached_class_file_bytes != NULL) { 3250 if (cached_class_file_bytes != NULL) {
3241 // JVMTI: we have an instanceKlass now, tell it about the cached bytes 3251 // JVMTI: we have an instanceKlass now, tell it about the cached bytes
3242 this_klass->set_cached_class_file(cached_class_file_bytes, 3252 this_klass->set_cached_class_file(cached_class_file_bytes,
3243 cached_class_file_length); 3253 cached_class_file_length);
3244 } 3254 }

mercurial