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

Skip to content

Conversation

@lambdageek
Copy link
Member

@lambdageek lambdageek commented Feb 24, 2018

  1. Change m_classdef_get_next_class_cache to be a byref getter since it's used to internally chain MonoClasses in a hash table.
  2. Allow debug-helpers.c to access MonoClass fields directly (rationale: all this stuff should be callable from a debugger session even in a checked mode with getter assertions enabled, once we have assertions in getters).
  3. Update a couple of files to use MonoClass getters:
    • sgen/sgen-debug.c
    • sgen/sgen-client-mono.h
    • metadata/image.c
    • metadata/appdomain.c
    • metadata/exceptions.c
    • utils/mono-error.c

#6925

@lambdageek
Copy link
Member Author

@monojenkins build Linux AArch64

@luhenry luhenry self-assigned this Feb 26, 2018
@lambdageek lambdageek merged commit 8d37ddb into mono:master Feb 26, 2018
@lambdageek lambdageek deleted the use-getters-smol branch February 27, 2018 15:59
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* [metadata] Fix m_classdef_get_next_class_cache getter to be byref

Apparently the way this field is used is to internally chain cached classes, so
we need its address.

* [metadata] Use MonoClass getters in image.c

* [metadata] Allow debug-helpers to access MonoClass fields directly.

* [metadata] Use MonoClass getters in mono-error.c

* [sgen] Use MonoClass getters in sgen-debug.c

* [sgen] Use MonoClass getters in sgen-client-mono.h

* [metadta] Use MonoClass getters in appdomain.c

* [metadata] Use MonoClass getters in exceptions.c


Commit migrated from mono/mono@8d37ddb
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