Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Please look again at xoofx's suggestions #238

Closed
ygc369 opened this issue Mar 9, 2017 · 2 comments
Closed

Please look again at xoofx's suggestions #238

ygc369 opened this issue Mar 9, 2017 · 2 comments

Comments

@ygc369
Copy link

ygc369 commented Mar 9, 2017

Most of his suggestions are very good and reasonable, especially these below:

  1. from http://xoofx.com/blog/2015/10/08/stackalloc-for-class-with-roslyn-and-coreclr/
  1. Allocation on the stack of reference types (the subject of this post)
  2. Embedded allocation of a reference type within another reference type (fat type)
  3. Single Owner/Borrowed reference
  1. from http://xoofx.com/blog/2017/01/17/the-stark-programming-language-experiment/

......There will be also a single ownership allocation that will allow allocate on the heap but without having the GC to track these references (would be tracked by single ownership and destruction on last owner disposed)......

@ygc369
Copy link
Author

ygc369 commented Mar 9, 2017

@xoofx
Here are some of my ideas, which I think worth considering:

  1. Optimization for LOH GC: https://github.com/dotnet/coreclr/issues/555
  2. Optimization about generation GC: https://github.com/dotnet/coreclr/issues/1856 and https://github.com/dotnet/coreclr/issues/1855
  3. If stack-alloc-for-class is implemented and a stack-allocated object has finalizer, then its finalizer should be executed once its last reference goes out of scope, not need wait until GC finishes.

@ygc369 ygc369 closed this as completed Mar 10, 2017
@jnm2
Copy link
Contributor

jnm2 commented Oct 4, 2018

Fyi, work has started on stack-allocated objects. dotnet/coreclr#20251

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants