[runtime] Use mono_assembly_get_object_handle instead of mono_assembly_get_object_che...
commit8850a990f86a12547279e78891f8179b200d448e
authorAleksey Kliger (λgeek) <akliger@gmail.com>
Fri, 2 Dec 2016 16:39:39 +0000 (2 11:39 -0500)
committerGitHub <noreply@github.com>
Fri, 2 Dec 2016 16:39:39 +0000 (2 11:39 -0500)
tree6cd14a21774d0204007b9a45fe9d5b53f13a214a
parent07c20be565add68c54364d0689c71879ad15571b
[runtime] Use mono_assembly_get_object_handle instead of mono_assembly_get_object_checked everywhere in the runtime. (#4061)

* [runtime] Move domain icall declarations to appdomain-icalls.h

* [coop] Use handles for System.AppDomain.GetAssemblies icall

* [coop handles] Add HANDLE_FUNCTION_RETURN_REF macro

* [runtime] Handles for AppDomain.LoadAssemblyRaw and Assembly.LoadFrom

* [reflection] Coop handles for RuntimeTypeHandle.GetAssembly

* [runtime] Change mono_try_assembly_resolve to return MonoAssembly

  instead of managed MonoReflectionAssembly.  Update call sites.

  Also implement it in terms of mono_try_assembly_resolve_handle (which
  also returns MonoAssembly*, not a managed object)

* [runtime] Use handles for System.AppDomain.LoadAssembly

* [reflection] Use mono_assembly_get_object_handle instead of mono_assembly_get_object_checked

  Convert all its callers to use handles and get rid of mono_assembly_get_object_checked
16 files changed:
mono/metadata/Makefile.am
mono/metadata/appdomain-icalls.h [new file with mode: 0644]
mono/metadata/appdomain.c
mono/metadata/assembly.c
mono/metadata/custom-attrs.c
mono/metadata/domain-internals.h
mono/metadata/handle.c
mono/metadata/handle.h
mono/metadata/icall-def.h
mono/metadata/icall.c
mono/metadata/object-internals.h
mono/metadata/reflection-internals.h
mono/metadata/reflection.c
mono/mini/debugger-agent.c
mono/mini/jit-icalls.c
msvc/libmonoruntime.vcxproj