Jean-Claude Wippler wrote: > > Hello Vladimir, > > >1) All C extension modules, without exceptions, would be silently redirected > > to use the Python malloc wrappers. Silently means that no one line of code > > would need to be modified and the modules will continue to compile and run > > as before. (i.e. all macros and functions used in C code remain the same) > > Have you taken C++ into account (i.e. new and new[] in the C++ runtime > calling malloc)? As long as Python objects are allocated and freed with PyObject_NEW/DEL, and Python memory is manipulated with the Python malloc interfaces, I don't see a problem, even if the core, or some extensions are compiled with a C++ compiler. C++ constructors and destructors use malloc (usually), but remain completely symmetrical. That is what's allocated via malloc() is released via free(). Why, should I be aware of something special? -- Vladimir MARANGOZOV | Vladimir.Marangozov@inrialpes.fr http://sirac.inrialpes.fr/~marangoz | tel:(+33-4)76615277 fax:76615252
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4