Bug 787291 - add pod_malloc<T> et al (r=billm)

This commit is contained in:
Luke Wagner
2012-08-31 15:10:10 -07:00
parent bd2a0bf71a
commit df652165a4
30 changed files with 166 additions and 113 deletions

View File

@@ -498,7 +498,7 @@ js::XDRAtom(XDRState<mode> *xdr, JSAtom **atomp)
* most allocations here will be bigger than tempLifoAlloc's default
* chunk size.
*/
chars = static_cast<jschar *>(cx->runtime->malloc_(nchars * sizeof(jschar)));
chars = cx->runtime->pod_malloc<jschar>(nchars);
if (!chars)
return false;
}