Skip to content

Handle ruby allocation failures gracefully#28145

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_903547833
Draft

Handle ruby allocation failures gracefully#28145
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_903547833

Conversation

@copybara-service

Copy link
Copy Markdown

Handle ruby allocation failures gracefully

Prior to this change, the custom alloc function used with arenas would internally longjmp on allocation failure, which would then leak memory (as upb does not expect or permit longjmp from an alloc function, and has no way to free intermediate allocations).

Prior to this change, the custom alloc function used with arenas would internally longjmp on allocation failure, which would then leak memory (as upb does not expect or permit longjmp from an alloc function, and has no way to free intermediate allocations).

PiperOrigin-RevId: 903547833
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

Successfully merging this pull request may close these issues.

1 participant