Lines Matching defs:id
211 bool jfieldIDWorkaround::is_valid_jfieldID(klassOop k, jfieldID id) {
212 if (jfieldIDWorkaround::is_instance_jfieldID(k, id)) {
213 uintptr_t as_uint = (uintptr_t) id;
214 intptr_t offset = raw_instance_offset(id);
215 if (is_checked_jfieldID(id)) {
216 if (!klass_hash_ok(k, id)) {
222 JNIid* result = (JNIid*) id;
259 bool jfieldIDWorkaround::klass_hash_ok(klassOop k, jfieldID id) {
260 uintptr_t as_uint = (uintptr_t) id;
272 void jfieldIDWorkaround::verify_instance_jfieldID(klassOop k, jfieldID id) {
273 guarantee(jfieldIDWorkaround::is_instance_jfieldID(k, id), "must be an instance field" );
274 uintptr_t as_uint = (uintptr_t) id;
275 intptr_t offset = raw_instance_offset(id);
277 if (is_checked_jfieldID(id)) {
278 guarantee(klass_hash_ok(k, id),
537 // Make sure class is initialized before handing id's out to methods
570 // Make sure class is initialized before handing id's out to fields
576 JNIid* id = instanceKlass::cast(k1())->jni_id_for(offset);
577 assert(id != NULL, "corrupt Field object");
578 debug_only(id->set_is_static_field_id();)
580 ret = jfieldIDWorkaround::to_static_jfieldID(id);
1610 // Make sure class is linked and initialized before handing id's out to
2612 // Make sure class is initialized before handing id's out to fields
2930 JNIid* id = jfieldIDWorkaround::from_static_jfieldID(fieldID);
2931 assert(id->is_static_field_id(), "invalid static field id");
2932 found = id->find_local_field(&fd);
2977 // Make sure class is initialized before handing id's out to static fields
2987 JNIid* id = instanceKlass::cast(fd.field_holder())->jni_id_for(fd.offset());
2988 debug_only(id->set_is_static_field_id();)
2990 debug_only(id->verify(fd.field_holder()));
2992 ret = jfieldIDWorkaround::to_static_jfieldID(id);
3006 JNIid* id = jfieldIDWorkaround::from_static_jfieldID(fieldID);
3007 assert(id->is_static_field_id(), "invalid static field id");
3011 JvmtiExport::jni_GetField_probe(thread, NULL, NULL, id->holder(), fieldID, true);
3013 jobject ret = JNIHandles::make_local(id->holder()->java_mirror()->obj_field(id->offset()));
3034 JNIid* id = jfieldIDWorkaround::from_static_jfieldID(fieldID); \
3035 assert(id->is_static_field_id(), "invalid static field id"); \
3039 JvmtiExport::jni_GetField_probe(thread, NULL, NULL, id->holder(), fieldID, true); \
3041 ret = id->holder()->java_mirror()-> Fieldname##_field (id->offset()); \
3068 JNIid* id = jfieldIDWorkaround::from_static_jfieldID(fieldID); \
3069 assert(id->is_static_field_id(), "invalid static field id"); \
3073 JvmtiExport::jni_GetField_probe(thread, NULL, NULL, id->holder(), fieldID, true); \
3075 ret = id->holder()->java_mirror()-> Fieldname##_field (id->offset()); \
3106 JNIid* id = jfieldIDWorkaround::from_static_jfieldID(fieldID);
3107 assert(id->is_static_field_id(), "invalid static field id");
3113 JvmtiExport::jni_SetField_probe(thread, NULL, NULL, id->holder(), fieldID, true, 'L', (jvalue *)&field_value);
3115 id->holder()->java_mirror()->obj_field_put(id->offset(), JNIHandles::resolve(value));
3134 JNIid* id = jfieldIDWorkaround::from_static_jfieldID(fieldID); \
3135 assert(id->is_static_field_id(), "invalid static field id"); \
3141 JvmtiExport::jni_SetField_probe(thread, NULL, NULL, id->holder(), fieldID, true, SigType, (jvalue *)&field_value); \
3143 id->holder()->java_mirror()-> Fieldname##_field_put (id->offset(), value); \
3165 JNIid* id = jfieldIDWorkaround::from_static_jfieldID(fieldID); \
3166 assert(id->is_static_field_id(), "invalid static field id"); \
3172 JvmtiExport::jni_SetField_probe(thread, NULL, NULL, id->holder(), fieldID, true, SigType, (jvalue *)&field_value); \
3174 id->holder()->java_mirror()-> Fieldname##_field_put (id->offset(), value); \