for (j = 0; j < mono_array_length (mb->override_methods); ++j) {
m = mono_array_get (mb->override_methods, MonoReflectionMethod*, j);
- (*overrides) [onum * 2] = mono_reflection_method_get_handle (m);
+ (*overrides) [onum * 2] = mono_reflection_method_get_handle ((MonoObject*)m);
(*overrides) [onum * 2 + 1] = mb->mhandle;
g_assert (mb->mhandle);
if (obj->data == ptr)
fprintf (gc_debug_file, "(object %s.%s size %d)",
- vtable->klass->name_space, vtable->klass->name, obj->size);
+ vtable->klass->name_space, vtable->klass->name, (int)obj->size);
else
fprintf (gc_debug_file, "(interior-ptr offset %td of %p (%s.%s) size %d)",
- ptr - obj->data, obj->data,
- vtable->klass->name_space, vtable->klass->name, obj->size);
+ ptr - obj->data, obj->data,
+ vtable->klass->name_space, vtable->klass->name, (int)obj->size);
return TRUE;
}
section->size = MAJOR_SECTION_SIZE - SGEN_SIZEOF_GC_MEM_SECTION;
section->end_data = section->data + section->size;
sgen_update_heap_boundaries ((mword)section->data, (mword)section->end_data);
- DEBUG (3, fprintf (gc_debug_file, "New major heap section: (%p-%p), total: %lld\n", section->data, section->end_data, mono_gc_get_heap_size ()));
+ DEBUG (3, fprintf (gc_debug_file, "New major heap section: (%p-%p), total: %lld\n", section->data, section->end_data, (long long int)mono_gc_get_heap_size ()));
scan_starts = (section->size + SGEN_SCAN_START_SIZE - 1) / SGEN_SCAN_START_SIZE;
section->scan_starts = sgen_alloc_internal_dynamic (sizeof (char*) * scan_starts, INTERNAL_MEM_SCAN_STARTS);
section->num_scan_start = scan_starts;
rely on pthread_self () and seatch over the thread list.
*/
if (!info)
- info = mono_thread_info_lookup (pthread_self ());
+ info = (SgenThreadInfo*)mono_thread_info_lookup (pthread_self ());
/*
* If a thread is dying there might be no thread info. In