Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Method to determine current stack size #30034

Closed
monty241 opened this issue Jun 23, 2019 · 3 comments
Closed

Method to determine current stack size #30034

monty241 opened this issue Jun 23, 2019 · 3 comments
Labels
api-suggestion Early API idea and discussion, it is NOT ready for implementation area-System.Threading
Milestone

Comments

@monty241
Copy link

Our software runs on various platforms, both on framework 4.7.2 (W7..W10) as well as .NET Core 2.1 and 2.2 on Linux, Mac and Windows.

With increasing use of .NET Core on Linux, we get some errors on the restrained stack size. For instance, our Exact Online drivers require at stack size of at least close to 256 KB during initialization due to CLR issues.

I would like to add some checks to the base classes which guide users and system administrators when the stack size is expected to be too small to run the software.

On Windows 7 it is quite hard to get the stack size, On win8..10 it is easy, but on .NET Core I seem unable to find a valid approach.

Would be great when a method could be added which just returns the current stack size of the running thread.

@RussKeldorph
Copy link
Contributor

@janvorli

@RussKeldorph RussKeldorph transferred this issue from dotnet/coreclr Jun 25, 2019
@msftgits msftgits transferred this issue from dotnet/corefx Feb 1, 2020
@msftgits msftgits added this to the 5.0 milestone Feb 1, 2020
@dotnet dotnet deleted a comment from RussKeldorph Feb 25, 2020
@stephentoub
Copy link
Member

stephentoub commented Feb 25, 2020

@monty241, can you propose what API specifically you'd hope to see here?
https://github.com/dotnet/runtime/blob/master/docs/project/api-review-process.md

@stephentoub stephentoub modified the milestones: 5.0, Future Feb 25, 2020
@maryamariyan maryamariyan added the untriaged New issue has not been triaged by the area owner label Feb 26, 2020
@stephentoub stephentoub removed the untriaged New issue has not been triaged by the area owner label Feb 28, 2020
@stephentoub
Copy link
Member

Closing due to no response. Please feel free to re-open if this is still an issue and you can propose the API in question. Thanks.

@ghost ghost locked as resolved and limited conversation to collaborators Mar 28, 2021
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
api-suggestion Early API idea and discussion, it is NOT ready for implementation area-System.Threading
Projects
None yet
Development

No branches or pull requests

5 participants