@@ -56,10 +56,9 @@ static void CollectHashMapListClasses(gpointer key, gpointer value, gpointer use
56
56
}
57
57
}
58
58
59
- static void CollectGenericClass (gpointer value , gpointer user_data )
59
+ static void CollectGenericClass (MonoGenericClass * genericClass , gpointer user_data )
60
60
{
61
61
CollectMetadataContext * context = (CollectMetadataContext * )user_data ;
62
- MonoGenericClass * genericClass = (MonoGenericClass * )value ;
63
62
64
63
if (genericClass -> cached_class != NULL )
65
64
ContextInsertClass (context , genericClass -> cached_class );
@@ -349,7 +348,7 @@ static void IncrementCountForImageSetMemPoolNumChunks(MonoImageSet *imageSet, vo
349
348
static int MonoImageSetsMemPoolNumChunks ()
350
349
{
351
350
int count = 0 ;
352
- mono_metadata_image_set_foreach (( GFunc ) IncrementCountForImageSetMemPoolNumChunks , & count );
351
+ mono_metadata_image_set_foreach (IncrementCountForImageSetMemPoolNumChunks , & count );
353
352
return count ;
354
353
}
355
354
@@ -410,7 +409,7 @@ static void* CaptureHeapInfo(void* user)
410
409
// Allocate memory for each image->class_cache hash table.
411
410
g_hash_table_foreach (monoImages , (GHFunc )AllocateMemoryForImageClassCache , & iterationContext );
412
411
// Allocate memory for each image->class_cache hash table.
413
- mono_metadata_image_set_foreach (( GFunc ) AllocateMemoryForImageSetMemPool , & iterationContext );
412
+ mono_metadata_image_set_foreach (AllocateMemoryForImageSetMemPool , & iterationContext );
414
413
415
414
return NULL ;
416
415
}
@@ -512,7 +511,7 @@ static void CaptureManagedHeap(MonoManagedHeap* heap, GHashTable* monoImages)
512
511
mono_mempool_foreach_block (domain -> mp , CopyMemPoolChunk , & iterationContext );
513
512
g_hash_table_foreach (monoImages , (GHFunc )CopyImageMemPool , & iterationContext );
514
513
g_hash_table_foreach (monoImages , (GHFunc )CopyImageClassCache , & iterationContext );
515
- mono_metadata_image_set_foreach (( GFunc ) CopyImageSetMemPool , & iterationContext );
514
+ mono_metadata_image_set_foreach (CopyImageSetMemPool , & iterationContext );
516
515
517
516
GC_start_world_external ();
518
517
}
0 commit comments