Skip to content

Conversation

@vargaz
Copy link
Contributor

@vargaz vargaz commented May 8, 2023

Fixes #85917.

@ghost ghost added the area-Codegen-AOT-mono label May 8, 2023
@ghost ghost assigned vargaz May 8, 2023
@lewing
Copy link
Member

lewing commented May 9, 2023

cc @radical

@vargaz vargaz force-pushed the aot-class-name-table branch from 7786b0c to d289d08 Compare May 9, 2023 22:51
#endif

guint table_len = table->len;
if (table_size > 65000 || table->len > 65000) {
Copy link
Member

Choose a reason for hiding this comment

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

Why 65000? (As opposed to 65534 or something)

Do we know how much over the limit the microsoft graph API is? I guess metadata tokens are effectively 24 bits right? so there could be as many as 2^24-1 classes in that assembly?

Copy link
Member

Choose a reason for hiding this comment

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

I mean it's kind of too bad that the largest assembly is the one that gets penalized by not having fast name lookup

Copy link
Contributor Author

Choose a reason for hiding this comment

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

65000 is used to avoid having to think about off by one errors. The assembly has about 40k classes, maybe linking is turned off for it.

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.

Blazor WebAssembly AOT condition `table_size < 65000' not met

3 participants