Bug 643548: Remove mozalloc_undef_macro_wrappers hack from JS engine. (r=luke,rs=brendan)

mozalloc_undef_macro_wrappers are brittle and have side-effects that are hard
to debug and fix. The alternative is the just stick an underscore on the end of
malloc, free, etc, which is a comparatively small burden.
This commit is contained in:
Paul Biggar
2011-03-31 01:14:12 -07:00
parent 70a9d26e32
commit 17e5445d64
56 changed files with 441 additions and 499 deletions

View File

@@ -482,7 +482,7 @@ Atomize(JSContext *cx, const jschar *chars, size_t length, uintN flags)
if (flags & ATOM_NOCOPY) {
key = js_NewString(cx, const_cast<jschar *>(chars), length);
if (!key) {
cx->free(const_cast<jschar *>(chars));
cx->free_(const_cast<jschar *>(chars));
return NULL;
}
} else {