Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

reset the new handler (develop) #8313

Merged
merged 4 commits into from
Dec 18, 2019
Merged

Conversation

larryk85
Copy link
Contributor

Change Description

Because LLVM sets the new_handler to abort when new cannot allocate any more memory, we've lost the ability to exit cleanly in some instances and not corrupt the DB. This fix should reset the new_handler to throw std::bad_alloc and use the old behavior of EOSIO.

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Because LLVM sets the new_handler to abort when new cannot allocate any more memory, we've lost the ability to exit cleanly in some instances and not corrupt the DB. This fix should reset the new_handler to throw std::bad_alloc and use the old behavior of EOSIO.

Documentation Additions

  • Documentation Additions

@heifner heifner merged commit 0a5cace into develop Dec 18, 2019
@heifner heifner deleted the fix/reset-new-handler-develop branch December 18, 2019 23:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants