Expose memory.grow, memory.size, memory.dataLength
See original GitHub issueGoal
Unblock work for a full-blown allocator.
Overview
memory_grow
are not available through walt, but can be implemented as members of the Memory
and Table
types.
Acceptance Criteria
This should work
const memory : Memory = { initial: 1 };
function test() {
memory.size();
memory.grow();
memory.dataSize();
}
-
Memory.grow()
-
Memory.size()
current size of memory -
Memory.dataSize
length of the data section, always zero until data senction encoding is implemented.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Sizing NameNode Heap Memory | 6.3.x
Monitoring Heap Memory Usage. You can monitor your heap memory usage several ways: Cloudera Manager: Look at the NameNode chart for heap ...
Read more >Understanding Garbage Collection and Hunting Memory ...
A look into how Node.js manages memory with garbage collection.
Read more >How To Write Fast, Memory-Efficient JavaScript
Growing As You Go Don't pre-allocate large arrays (i.e. greater than 64K elements) to their maximum size, instead grow as you go. Before...
Read more >CS 225 | Stack and Heap Memory
When a new local variables is declared, more stack memory is allocated for that function to store the variable. Such allocations make the...
Read more >What and where are the stack and heap?
The size of the heap is set on application startup, but can grow as space is needed (the allocator requests more memory from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Implemented by #148
this would be nice 😃