Skip to content

Fix mono alc from gchandle - #62120

Merged
lateralusX merged 5 commits into
dotnet:mainfrom
srxqds:fix-mono_alc_from_gchandle
Nov 30, 2021
Merged

Fix mono alc from gchandle#62120
lateralusX merged 5 commits into
dotnet:mainfrom
srxqds:fix-mono_alc_from_gchandle

Conversation

@srxqds

@srxqdssrxqds commented Nov 29, 2021

Copy link
Copy Markdown
Contributor

fix: #62052

@ghostghost added community-contribution Indicates that the PR has been added by a community member area-AssemblyLoader-mono labels Nov 29, 2021
@ghost

Copy link
Copy Markdown

Tagging subscribers to this area:
See info in area-owners.md if you want to be subscribed.

Issue Details

null

Author:srxqds
Assignees:-
Labels:

area-AssemblyLoader-mono, community-contribution

Milestone:-

Comment threadsrc/mono/mono/metadata/assembly-load-context.c
Comment threadsrc/mono/mono/metadata/assembly-load-context.c
@lateralusX

Copy link
Copy Markdown
Member

Compile error:

 /__w/1/s/src/mono/mono/metadata/assembly-load-context.c:431:27: error: too few arguments to function ‘mono_class_get_field_from_name_full’
431 | resolve = mono_class_get_field_from_name_full (alc_class, "_nativeAssemblyLoadContext");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /__w/1/s/src/mono/mono/mini/../../mono/metadata/handle.h:26,
from /__w/1/s/src/mono/mono/mini/../../mono/metadata/exception-internals.h:11,
from /__w/1/s/src/mono/mono/metadata/assembly-load-context.c:7:
/__w/1/s/src/mono/mono/mini/../../mono/metadata/class-internals.h:1227:1: note: declared here
1227 | mono_class_get_field_from_name_full (MonoClass *klass, const char *name, MonoType *type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@lateralusX
lateralusX self-requested a review November 30, 2021 09:10
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-AssemblyLoader-monocommunity-contributionIndicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[mono][bug] mono_alc_from_gchandle return wrong value?

3 participants

@srxqds@lateralusX@vargaz