Hello,
is it a bad idea to declare js_malloc, js_calloc, js_realloc, js_free and 
js_strdup in js/public/Utility.h as weak symbols ("__attribute__((weak))")?

This would allow to use own allocator functions during SpiderMonkey library 
link time.

I know that weak symbols are not in C standard so it is not good for 
portability. Mainly I want to know if there could be some functional problems? 
And if SpiderMonkey maintainers are against this way of cuntomization?

Thanks for responses,
Marek
_______________________________________________
dev-tech-js-engine-internals mailing list
dev-tech-js-engine-internals@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Reply via email to