369 {
370 No_Safepoint_Verifier no_safepoint; // until k becomes parsable
371 instanceKlass* ik = (instanceKlass*) k()->klass_part();
372 assert(!k()->is_parsable(), "not expecting parsability yet.");
373
374 // The sizes of these these three variables are used for determining the
375 // size of the instanceKlassOop. It is critical that these are set to the right
376 // sizes before the first GC, i.e., when we allocate the mirror.
377 ik->set_vtable_length(vtable_len);
378 ik->set_itable_length(itable_len);
379 ik->set_static_field_size(static_field_size);
380 ik->set_nonstatic_oop_map_size(nonstatic_oop_map_size);
381 assert(k()->size() == size, "wrong size for object");
382
383 ik->set_array_klasses(NULL);
384 ik->set_methods(NULL);
385 ik->set_method_ordering(NULL);
386 ik->set_local_interfaces(NULL);
387 ik->set_transitive_interfaces(NULL);
388 ik->init_implementor();
389 ik->set_fields(NULL);
390 ik->set_constants(NULL);
391 ik->set_class_loader(NULL);
392 ik->set_protection_domain(NULL);
393 ik->set_host_klass(NULL);
394 ik->set_signers(NULL);
395 ik->set_source_file_name(NULL);
396 ik->set_source_debug_extension(NULL);
397 ik->set_source_debug_extension(NULL);
398 ik->set_array_name(NULL);
399 ik->set_inner_classes(NULL);
400 ik->set_static_oop_field_count(0);
401 ik->set_nonstatic_field_size(0);
402 ik->set_is_marked_dependent(false);
403 ik->set_init_state(instanceKlass::allocated);
404 ik->set_init_thread(NULL);
405 ik->set_reference_type(rt);
406 ik->set_oop_map_cache(NULL);
407 ik->set_jni_ids(NULL);
408 ik->set_osr_nmethods_head(NULL);
409 ik->set_breakpoints(NULL);
|
369 {
370 No_Safepoint_Verifier no_safepoint; // until k becomes parsable
371 instanceKlass* ik = (instanceKlass*) k()->klass_part();
372 assert(!k()->is_parsable(), "not expecting parsability yet.");
373
374 // The sizes of these these three variables are used for determining the
375 // size of the instanceKlassOop. It is critical that these are set to the right
376 // sizes before the first GC, i.e., when we allocate the mirror.
377 ik->set_vtable_length(vtable_len);
378 ik->set_itable_length(itable_len);
379 ik->set_static_field_size(static_field_size);
380 ik->set_nonstatic_oop_map_size(nonstatic_oop_map_size);
381 assert(k()->size() == size, "wrong size for object");
382
383 ik->set_array_klasses(NULL);
384 ik->set_methods(NULL);
385 ik->set_method_ordering(NULL);
386 ik->set_local_interfaces(NULL);
387 ik->set_transitive_interfaces(NULL);
388 ik->init_implementor();
389 ik->set_fields(NULL, 0);
390 ik->set_constants(NULL);
391 ik->set_class_loader(NULL);
392 ik->set_protection_domain(NULL);
393 ik->set_host_klass(NULL);
394 ik->set_signers(NULL);
395 ik->set_source_file_name(NULL);
396 ik->set_source_debug_extension(NULL);
397 ik->set_source_debug_extension(NULL);
398 ik->set_array_name(NULL);
399 ik->set_inner_classes(NULL);
400 ik->set_static_oop_field_count(0);
401 ik->set_nonstatic_field_size(0);
402 ik->set_is_marked_dependent(false);
403 ik->set_init_state(instanceKlass::allocated);
404 ik->set_init_thread(NULL);
405 ik->set_reference_type(rt);
406 ik->set_oop_map_cache(NULL);
407 ik->set_jni_ids(NULL);
408 ik->set_osr_nmethods_head(NULL);
409 ik->set_breakpoints(NULL);
|