Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lambdageek
Copy link
Member

@lambdageek lambdageek commented Feb 28, 2018

  1. Move MonoClass:gc_descr and MonoClass:runtime_info initialization to class-init.c: mono_class_compute_gc_descriptor already existed, mono_class_setup_runtime_info is extracted from mono_class_create_runtime_vtable (it's the only part that mutates a MonoClass).
  2. Use getters everywhere in object.c

#6925

… class-init.c

- Move mono_class_compute_gc_descriptor to class-init.c
- Extract mono_class_setup_runtime_info from mono_class_create_runtime_vtable
Copy link
Contributor

@kumpera kumpera left a comment

Choose a reason for hiding this comment

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

LGTM.
The comments are just random rants about existing code.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ugg

Property bag setters don't need any locking.

Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, locking shouldn't be needed, just a store barrier.

@lambdageek lambdageek force-pushed the runtime-class-init branch from a8b84c8 to 2173040 Compare March 1, 2018 19:15
@lambdageek lambdageek merged commit 182a748 into mono:master Mar 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants