File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1795,14 +1795,14 @@ JSRuntime *JS_NewRuntime2(const JSMallocFunctions *mf, void *opaque)
1795
1795
rt = mf->js_calloc(opaque, 1, sizeof(JSRuntime));
1796
1796
if (!rt)
1797
1797
return NULL;
1798
- /* Inline what js_malloc_rt does since we cannot use it here. */
1799
- ms.malloc_count++;
1800
- ms.malloc_size += mf->js_malloc_usable_size(rt) + MALLOC_OVERHEAD;
1801
1798
rt->mf = *mf;
1802
1799
if (!rt->mf.js_malloc_usable_size) {
1803
1800
/* use dummy function if none provided */
1804
1801
rt->mf.js_malloc_usable_size = js_malloc_usable_size_unknown;
1805
1802
}
1803
+ /* Inline what js_malloc_rt does since we cannot use it here. */
1804
+ ms.malloc_count++;
1805
+ ms.malloc_size += rt->mf.js_malloc_usable_size(rt) + MALLOC_OVERHEAD;
1806
1806
rt->malloc_state = ms;
1807
1807
rt->malloc_gc_threshold = 256 * 1024;
1808
1808
You can’t perform that action at this time.
0 commit comments