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

Add proper handling of shared memory exhaustion #128

Open
bonachea opened this issue Aug 9, 2024 · 0 comments
Open

Add proper handling of shared memory exhaustion #128

bonachea opened this issue Aug 9, 2024 · 0 comments

Comments

@bonachea
Copy link
Member

bonachea commented Aug 9, 2024

Currently Caffeine always crashes with obscure signals on shared memory exhaustion. Shared heap exhaustion is a very common failure mode in practice and probably the most important runtime error to detect and issue a high-quality diagnostic.

At a minimum, Caffeine needs to be updated to be PRIF-compliant and return stat=PRIF_STAT_OUT_OF_MEMORY when stat is provided.

I'd also like to see us format a nice error message that includes the total size of the current shared heap, the total size of the primordial shared heaps and the size of the request that failed. Then upon failure we can either return that message in errmsg (if provided) or print it to the console along with error termination.

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