diff options
author | Alexander Kyte <alexmkyte@gmail.com> | 2017-04-12 19:25:18 +0300 |
---|---|---|
committer | Alexander Kyte <alexmkyte@gmail.com> | 2017-04-18 18:33:16 +0300 |
commit | a8dfce54660780a583baf1eca4968eb1712102ce (patch) | |
tree | 4c59da2d8721093555d06e03fdf0de755628fbbb /mcs/nunit24/NUnitExtensions/framework | |
parent | db95a040654f0407ca8bd8213bd780207e4822c6 (diff) |
[runtime] Handle circular references in SRE types
We previously recursed through the entire directed cyclic graph
of the type passed to SRE. When given a (legal) circular type reference,
we encountered stack overflows. This was particularly easy to trigger
with fsharpi and with FAKE.
By creating everything about the type before searching for the parent,
and by defering all type hierarchy establishment until the type must be
surfaced to manage code, we tease out the data dependencies caught up in
the cycle.
Note the bounded lifetime of the unmanaged object hidden in the SRE
module, which acts as a global reference for all types reachable from
the TypeBuilder passed to the runtime through the icall.
Diffstat (limited to 'mcs/nunit24/NUnitExtensions/framework')
0 files changed, 0 insertions, 0 deletions