Skip to content

Conversation

@vargaz
Copy link
Contributor

@vargaz vargaz commented May 9, 2022

…ructed during AOT.

Fixes #57361.

@vargaz vargaz requested review from lambdageek and thaystg as code owners May 9, 2022 20:54
@ghost ghost added the area-VM-meta-mono label May 9, 2022
@ghost ghost assigned vargaz May 9, 2022
Comment on lines +605 to +610
for (i = 0; i < alen; i++) {
MonoObject *item = NULL;
load_cattr_value (image, m_class_get_byval_arg (tklass), &item, p, boundp, &p, error);
if (!is_ok (error))
return NULL;
}
Copy link
Member

@lambdageek lambdageek May 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't really fix the root issue (#52977), it just reads the values and throws them away.

I think @SamMonoRT wanted @ivanpovazan to work on a proper fix.

We do care about this on non-windows platforms, by the way. we might want to support [UnmanagedCallersOnly (CallConvs = new Type[] {CallConvCdecl, CallConvSuppressGCTransition})], for example.

I guess this is ok if it unblocks #57361 if we want to do that quickly for now

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ok for a quick fix to unblock 57361. @ivanpovazan will work on a proper fix and maybe change this temporary fix during that time. He'll start investigating this sometime this week.

@vargaz
Copy link
Contributor Author

vargaz commented May 10, 2022

Failures are unrelated.

@vargaz vargaz merged commit d2a7a6d into dotnet:main May 10, 2022
@vargaz vargaz deleted the cattr-array branch May 10, 2022 00:40
@ManickaP
Copy link
Member

Does this mean that I can get rid of all the Mono AOT exclusions in #69009? If yes, then thanks a lot!!!!

@vargaz
Copy link
Contributor Author

vargaz commented May 10, 2022

Its possible if they failed with the same error.

ivanpovazan added a commit to ivanpovazan/runtime that referenced this pull request May 25, 2022
…s are constructed during AOT. (dotnet#69077)" since 'load_cattr_value' is not used anymore during AOT compiling

This reverts commit d2a7a6d.
@ghost ghost locked as resolved and limited conversation to collaborators Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[mono] FullAOT runtime test failures: condition `out_obj' not met

4 participants