Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Private Variable

sparc_exit_stack

Private Variable
std.Thread.LinuxThreadImpl.ThreadCompletion.sparc_exit_stack
var sparc_exit_stack: [192]u8 align(16) = undefined

On SPARC, the kernel needs to be able to restore the current register window from the stack when returning from a syscall. That presents a bit of a problem in freeAndExit since we're deallocating the stack! The good news is that, since we do not care about the contents of the incoming and local registers at that point, we can just tell the kernel that our stack is this undefined global buffer.

File

Thread.zig:1152
1152
        var sparc_exit_stack: [192]u8 align(16) = undefined