[runtime] Fix argument name confusion in the xamarin_gchandle_new[_weakref] methods. (#10952)

This way the argument names match the argument names in the corresponding Mono Embedding API.

This is just an argument rename, no functional changes.
This commit is contained in:
Rolf Bjarne Kvinge 2021-03-24 17:38:01 +01:00 коммит произвёл GitHub
Родитель b30777f420
Коммит 1b658149ff
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -2763,15 +2763,15 @@ xamarin_get_managed_method_for_token (guint32 token_ref, GCHandle *exception_gch
}
GCHandle
xamarin_gchandle_new (MonoObject *obj, bool track_resurrection)
xamarin_gchandle_new (MonoObject *obj, bool pinned)
{
return GINT_TO_POINTER (mono_gchandle_new (obj, track_resurrection));
return GINT_TO_POINTER (mono_gchandle_new (obj, pinned));
}
GCHandle
xamarin_gchandle_new_weakref (MonoObject *obj, bool pinned)
xamarin_gchandle_new_weakref (MonoObject *obj, bool track_resurrection)
{
return GINT_TO_POINTER (mono_gchandle_new_weakref (obj, pinned));
return GINT_TO_POINTER (mono_gchandle_new_weakref (obj, track_resurrection));
}
MonoObject *

Просмотреть файл

@ -265,8 +265,8 @@ void xamarin_install_log_callbacks ();
* until Mono's pointer-sized API is available for us.
* Ref: https://github.com/dotnet/runtime/commit/3886a63841434af716292172737a42757a15c6a6
*/
GCHandle xamarin_gchandle_new (MonoObject *obj, bool track_resurrection);
GCHandle xamarin_gchandle_new_weakref (MonoObject *obj, bool pinned);
GCHandle xamarin_gchandle_new (MonoObject *obj, bool pinned);
GCHandle xamarin_gchandle_new_weakref (MonoObject *obj, bool track_resurrection);
MonoObject * xamarin_gchandle_get_target (GCHandle handle);
void xamarin_gchandle_free (GCHandle handle);
MonoObject * xamarin_gchandle_unwrap (GCHandle handle); // Will get the target and free the GCHandle