Uh oh!
There was an error while loading. Please reload this page.
Change stack size on all desktop platforms to at least 1.5MB - #98007
Conversation
- Change stack size to 4MB on 64-bit desktop - Add tests to check stack size
ghost
commented
Feb 5, 2024
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
(force push & empty commit were to workaround #98009) |
Uh oh!
There was an error while loading. Please reload this page.
jkotas
commented
Feb 6, 2024
As I have mentioned in #87879 (comment), I think that we should only fix macOS. Bumping the stack size on Windows is likely to introduce as many problems as it fixes. |
- Fix test definition - Fix NAOT apps stack size - Add `<UseAppHost>false</UseAppHost>` version of non-NAOT tests
hamarb123
commented
Feb 6, 2024
@janvorli what are your thoughts on the stack sizes we should change? I currently have them all at 4MB for 64-bit desktop platforms, but this is mainly for testing (not that I would complain if we ended up on this number 😆). Would you be happy with 2MB for all desktop platforms?
@jkotas would you accept 2MB also? It is only marginally higher than the current Windows value (1.5MB). I think it is a good middle ground, and should be enough to account for the ever-expanding usage of the stack that I mentioned in #87879 (comment) for the time being (and we could obviously re-visit it in the future if we wanted to increase it again). |
hamarb123
commented
Feb 6, 2024
I've found these 3 disabled tests due to macOS stack size, are there any others which I should re-enable with this fixed? |
jkotas
commented
Feb 6, 2024
I don't see a good reason for changing the Windows stacksize. We would need to file a breaking change notice for it and it would be hard to come up with a good justification. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Remove the NAOT specific test, since NAOT runs for the main test also
jkotas
commented
Feb 10, 2024
/azp run runtime-nativeaot-outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
hamarb123
commented
Feb 10, 2024
Should runtime-extra-platforms be run also @jkotas? (I can't run it, but I would think it makes sense, right?) |
jkotas
commented
Feb 12, 2024
I just wanted to double check that the new test is running as part of runtime-nativeaot-outerloop (confirmed - it does). |
Fixes#87879
Fixes#2084
Fixes#1417
Changes the stack size on desktop platforms to a certain minimum.
Specific changes we've landed on:
IlcDefaultStackSizeto be used to specify the stack size for NAOT on all platformsPlan:
(Already reverted) Note: I've currently made some changes to System.Reflection.Metadata's API, I don't plan to keep these - I had noticed that NAOT seemed to only be giving 1MB on Windows though when I built it a test console app, so I am seeing if it fixes that before doing a more proper fix.