Correct typos in the node documentation
This commit is contained in:
parent
0ef362472c
commit
69cf9ac139
|
@ -390,12 +390,16 @@ provides more detailed information on the EGC.
|
||||||
|
|
||||||
#### Parameters
|
#### Parameters
|
||||||
- `mode`
|
- `mode`
|
||||||
- `node.ecg.NOT_ACTIVE` EGC inactive, no collection cycle will be forced in low memory situations
|
- `node.egc.NOT_ACTIVE` EGC inactive, no collection cycle will be forced in low memory situations
|
||||||
- `node.ecg.ON_ALLOC_FAILURE` Try to allocate a new block of memory, and run the garbage collector if the allocation fails. If the allocation fails even after running the garbage collector, the allocator will return with error.
|
- `node.egc.ON_ALLOC_FAILURE` Try to allocate a new block of memory, and run the garbage collector if the allocation fails. If the allocation fails even after running the garbage collector, the allocator will return with error.
|
||||||
- `node.ecg.ON_MEM_LIMIT` Tun the garbage collector when the memory used by the Lua script goes beyond an upper `limit`. If the upper limit can't be satisfied even after running the garbage collector, the allocator will return with error.
|
- `node.egc.ON_MEM_LIMIT` Run the garbage collector when the memory used by the Lua script goes beyond an upper `limit`. If the upper limit can't be satisfied even after running the garbage collector, the allocator will return with error.
|
||||||
- `node.ecg.ALWAYS` Run the garbage collector before each memory allocation. If the allocation fails even after running the garbage collector, the allocator will return with error. This mode is very efficient with regards to memory savings, but it's also the slowest.
|
- `node.egc.ALWAYS` Run the garbage collector before each memory allocation. If the allocation fails even after running the garbage collector, the allocator will return with error. This mode is very efficient with regards to memory savings, but it's also the slowest.
|
||||||
- `level` in the case of `node.ecg.ON_MEM_LIMIT`, this specifies the memory limit.
|
- `level` in the case of `node.egc.ON_MEM_LIMIT`, this specifies the memory limit.
|
||||||
|
|
||||||
#### Returns
|
#### Returns
|
||||||
`nil`
|
`nil`
|
||||||
|
|
||||||
|
#### Example
|
||||||
|
|
||||||
|
`node.egc.setmode(node.egc.ALWAYS, 4096) -- This is the default setting at startup.`
|
||||||
|
`node.egc.setmode(node.egc.ON_ALLOC_FAILURE) -- This is the fastest activeEGC mode.`
|
||||||
|
|
Loading…
Reference in New Issue