Klass::Klass() { Klass* k = this; { // Preinitialize supertype information. // A later call to initialize_supers() may update these settings: set_super(NULL); for (juint i = 0; i < Klass::primary_super_limit(); i++) { _primary_supers[i] = NULL; } set_secondary_supers(NULL); _primary_supers[0] = k; set_super_check_offset(in_bytes(primary_supers_offset())); } set_java_mirror(NULL); set_modifier_flags(0); set_layout_helper(Klass::_lh_neutral_value); set_name(NULL); AccessFlags af; af.set_flags(0); set_access_flags(af); set_subklass(NULL); set_next_sibling(NULL); set_next_link(NULL); set_alloc_count(0); TRACE_SET_KLASS_TRACE_ID(this, 0); set_prototype_header(markOopDesc::prototype()); set_biased_lock_revocation_count(0); set_last_biased_lock_bulk_revocation_time(0); // The klass doesn't have any references at this point. clear_modified_oops(); clear_accumulated_modified_oops(); }
std::shared_ptr<odata_value> odata_test_service::get_people() { auto people_type = m_model->find_entity_type(U("Person")); auto people_collection_type = std::make_shared<edm_collection_type>(people_type); auto people_collection = std::make_shared<odata_collection_value>(people_collection_type); people_collection->add_collection_value(get_single_people(U("russellwhyte"))); people_collection->set_is_top_level(true); people_collection->set_next_link(U("http://localhost:4789/$metadata#People?$skiptoken=1")); people_collection->set_delta_link(U("http://localhost:4789/$metadata#People?$deltatoken=0826")); people_collection->set_count(1); return people_collection; }