Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for StackMemory (0.28 sec)

  1. src/runtime/testdata/testprog/syscall_windows.go

    	"internal/syscall/windows"
    	"runtime"
    	"sync"
    	"syscall"
    	"unsafe"
    )
    
    func init() {
    	register("RaiseException", RaiseException)
    	register("ZeroDivisionException", ZeroDivisionException)
    	register("StackMemory", StackMemory)
    }
    
    func RaiseException() {
    	const EXCEPTION_NONCONTINUABLE = 1
    	mod := syscall.MustLoadDLL("kernel32.dll")
    	proc := mod.MustFindProc("RaiseException")
    	proc.Call(0xbad, EXCEPTION_NONCONTINUABLE, 0, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 17:31:31 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. src/runtime/testdata/testprogcgo/stack_windows.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import "C"
    import (
    	"internal/syscall/windows"
    	"runtime"
    	"sync"
    	"syscall"
    	"unsafe"
    )
    
    func init() {
    	register("StackMemory", StackMemory)
    }
    
    func getPagefileUsage() (uintptr, error) {
    	p, err := syscall.GetCurrentProcess()
    	if err != nil {
    		return 0, err
    	}
    	var m windows.PROCESS_MEMORY_COUNTERS
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 17:31:31 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top