[erlang-patches] hipe: code allocation fixes

Mikael Pettersson mikpelinux@REDACTED
Sun Jan 11 17:43:14 CET 2015


This branch contains cleanups and fixes related to memory allocation for
code in the HiPE runtime.

- it changes generic code to raise Erlang-level exceptions on allocation
  failures
- it changes platform-specific code to signal allocation failures rather
  than crashing the VM (with abort() or SEGV from NULL pointer dereferences)
- it removes obsolete and disabled BIFs related to code management
- it eliminates a useless internal platform-specific macro

Tested with the HiPE testsuite on x86_64 (-m64 and -m32), sparc64 -m32,
armv7, and ppc64 -m32.

Signed-off-by: Mikael Pettersson <mikpelinux@REDACTED>

Links:

git fetch git://github.com/mikpe/otp.git hipe-code-alloc-fixes

https://github.com/mikpe/otp/compare/erlang:maint...hipe-code-alloc-fixes
https://github.com/mikpe/otp/compare/erlang:maint...hipe-code-alloc-fixes.patch

https://github.com/erlang/otp/pull/584



More information about the erlang-patches mailing list