Bug 60288 - Large Array Initializer Causes TypeLoadException
Summary: Large Array Initializer Causes TypeLoadException
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: General (show other bugs)
Version: 5.0 (2017-02)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-10-20 14:18 UTC by Jonathan Chambers
Modified: 2017-10-26 13:50 UTC (History)
3 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Test Case (5.88 MB, text/plain)
2017-10-20 14:19 UTC, Jonathan Chambers
Details

Description Jonathan Chambers 2017-10-20 14:18:48 UTC
Run the attached example. On .NET things run fine. On Mono there is TypeLoadException due to the array initializer becoming a value type larger than 1MB.
Comment 1 Jonathan Chambers 2017-10-20 14:19:18 UTC
Created attachment 25382 [details]
Test Case
Comment 2 Zoltan Varga 2017-10-23 19:55:20 UTC
https://github.com/mono/mono/pull/5844
Comment 3 Zoltan Varga 2017-10-26 13:50:35 UTC
Fixed by mono master 13a9fb6c7a51016306b80fa0bf41c8cacb424c38.

Note You need to log in before you can comment on or make changes to this bug.