Skip to content

[hot_reload] Check for added fields earlier in compute_class_bitmap - #89121

Merged
lambdageek merged 4 commits into
dotnet:mainfrom
lambdageek:fix-gh-86172
Jul 18, 2023
Merged

[hot_reload] Check for added fields earlier in compute_class_bitmap#89121
lambdageek merged 4 commits into
dotnet:mainfrom
lambdageek:fix-gh-86172

Conversation

@lambdageek

Copy link
Copy Markdown
Member

Added fields don't contribute to the class bitmap, and they also might not have their type resolved yet - move the "is from update" check before we need to access the field's type

Fixes#86172

@ghostghost added the area-EnC-mono Hot Reload for WebAssembly, iOS/Android, etc label Jul 18, 2023
@ghostghost assigned lambdageekJul 18, 2023
@lambdageek
lambdageek marked this pull request as draft July 18, 2023 19:23
@lambdageek
lambdageek marked this pull request as ready for review July 18, 2023 19:40
@lambdageek
lambdageekforce-pushed the fix-gh-86172 branch 2 times, most recently from 1b727e3 to c0510feCompareJuly 18, 2023 19:42
and in mono_class_create_runtime_vtable
Added fields don't contribute to the class bitmap, and they also might
not have their type resolved yet - move the "is from update" check
before we need to access the field's type
Comment threadsrc/mono/mono/metadata/object.c Outdated
@lambdageek
lambdageek merged commit df8e7e8 into dotnet:mainJul 18, 2023
@ghostghost locked as resolved and limited conversation to collaborators Aug 18, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-EnC-monoHot Reload for WebAssembly, iOS/Android, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[mono][hotreload] Adding a new field didn't work

3 participants

@lambdageek@vargaz@fanyang-mono