Project

General

Profile

« Previous | Next » 

Revision c4bd6da2

Added by hasumikin (hitoshi hasumi) over 1 year ago

[ruby/prism] Make alloc interface replaceable

  • Add x prefix to malloc, calloc, realloc, and free
    (eg: malloc -> xmalloc)
  • By default, they are replaced with stdlib's functions at build
  • You can use custom functions by defining PRISM_CUSTOM_ALLOCATOR macro

https://github.com/ruby/prism/commit/7a878af619