stackRegister
Mark a piece of memory as being a stack. Returns a stack id. start is the lowest addressable stack byte, end is the highest addressable stack byte.
Function parameters
Parameters
- stack:[]u8
Type definitions in this namespace
Types
- MempoolFlags
- Create a memory pool.
Functions in this namespace
Functions
- runningOnValgrind
- Returns the number of Valgrinds this code is running under.
- discardTranslations
- Discard translation of code in the slice qzz.
- countErrors
- Counts the number of errors that have been recorded by a tool.
- destroyMempool
- Destroy a memory pool.
- mempoolAlloc
- Associate a piece of memory with a memory pool.
- mempoolFree
- Disassociate a piece of memory from a memory pool.
- mempoolTrim
- Disassociate any pieces outside a particular range.
- moveMempool
- Resize and/or move a piece associated with a memory pool.
- mempoolChange
- Resize and/or move a piece associated with a memory pool.
- mempoolExists
- Return if a mempool exists.
- stackRegister
- Mark a piece of memory as being a stack.
- stackDeregister
- Unmark the piece of memory associated with a stack id as being a stack.
- stackChange
- Change the start and end address of the stack id.
- mapIpToSrcloc
- Map a code address to a source file name and line number.
- disableErrorReporting
- Disable error reporting for this thread.
- enableErrorReporting
- Re-enable error reporting.
- monitorCommand
- Execute a monitor command from the client program.
Source
Implementation
pub fn stackRegister(stack: []u8) usize {
return doClientRequestExpr(0, .StackRegister, @intFromPtr(stack.ptr), @intFromPtr(stack.ptr) + stack.len, 0, 0, 0);
}