MCPcopy
hub / github.com/plasma-umass/browsix / _malloc

Function _malloc

src/ld.js:6361–6369  ·  view source on GitHub ↗
(bytes)

Source from the content-addressed store, hash-verified

6359 }
6360
6361 function _malloc(bytes) {
6362 /* Over-allocate to make sure it is byte-aligned by 8.
6363 * This will leak memory, but this is only the dummy
6364 * implementation (replaced by dlmalloc normally) so
6365 * not an issue.
6366 */
6367 var ptr = Runtime.dynamicAlloc(bytes + 8);
6368 return (ptr+8) & 0xFFFFFFF8;
6369 }
6370 Module["_malloc"] = _malloc;
6371
6372 function _putenv(string) {

Callers 7

getMemoryFunction · 0.85
demangleFunction · 0.85
dash.jsFile · 0.85
getMemoryFunction · 0.85
demangleFunction · 0.85
ld.jsFile · 0.85
___syscall192Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected