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

improve _exit() #2

Open
anttikantee opened this issue Sep 11, 2013 · 0 comments
Open

improve _exit() #2

anttikantee opened this issue Sep 11, 2013 · 0 comments

Comments

@anttikantee
Copy link
Contributor

Currently, _exit(2) causes the DomU to kick it. We could make it mimic normal semantics where only the application exits with a few simple improvements, since most of the resources used by the process are tracked by the rump kernel and will be released when the rump_lwproc exits.

  • track application-side malloc's in per-process chains and release them at exit
  • zero out per-application bss before process is started (for re-execution). re-init r/w data (how?)
  • call exit_thread() instead of do_exit() (need to g/c other threads in multithreaded apps)

Something else? The above was "theoretically speaking" and off the top of my head.

liuw pushed a commit to liuw/rumprun-xen that referenced this issue Mar 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant