Skip to content

Mono runtime allows running module ctor and class ctors multiple times through reflection #40351

Closed

Description

@davidwrighton

As part of fixing bug #1748 it was discovered that reflection can execute module and class constructors multilple times. As this violates a number of the assumptions that the JIT is taking around behavior of readonly static fields, it was decided to disable that behavior.

The Mono runtime currently allows the class/module constructors to execute multiple times. This bug exists to track that difference and make it simple to disable the new test that checks to verify that such constructors do not run repeatedly.

Activity

  1. added
    untriaged
    on Aug 4, 2020
  2. added this to the 6.0.0 milestone on Aug 6, 2020
  3. removed
    untriaged
    on Aug 6, 2020
  4. added
    area-VM-reflection-mono
    and removed on Jun 21, 2021
  5. modified the milestones: 6.0.0, 7.0.0 on Jul 16, 2021
  6. SamMonoRT commented on Jul 16, 2021

    @SamMonoRT
    Member

    Moving to 7.0.0

  7. modified the milestones: 7.0.0, 8.0.0 on Aug 3, 2022
  8. jkotas commented on Aug 17, 2022

    @jkotas
    Member

    Fixed by #73955

  9. ghost locked as resolved and limited conversation to collaborators on Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-VM-reflection-mono

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions