Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
24 lines (23 loc) · 589 Bytes

File metadata and controls

24 lines (23 loc) · 589 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
* @license
* Copyright 2020 The Emscripten Authors
* SPDX-License-Identifier: MIT
*/
mergeInto(LibraryManager.library, {
emmalloc_unclaimed_heap_memory: function() {
var dynamicTop = _sbrk();
#if ALLOW_MEMORY_GROWTH
#if MAXIMUM_MEMORY != -1
// Using MAXIMUM_MEMORY to constrain max heap size.
return {{{ MAXIMUM_MEMORY }}} - dynamicTop;
#else
// Not using a Wasm memory bound.
return 2*1024*1024*1024 - 65536 - dynamicTop;
#endif
#else
// ALLOW_MEMORY_GROWTH is disabled, the current heap size
// is all we got.
return HEAPU8.length - dynamicTop;
#endif
}
});
Morty Proxy This is a proxified and sanitized view of the page, visit original site.