Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for StackMemory (0.26 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)
  3. src/runtime/crash_cgo_test.go

    }
    
    func TestWindowsStackMemoryCgo(t *testing.T) {
    	if runtime.GOOS != "windows" {
    		t.Skip("skipping windows specific test")
    	}
    	testenv.SkipFlaky(t, 22575)
    	o := runTestProg(t, "testprogcgo", "StackMemory")
    	stackUsage, err := strconv.Atoi(o)
    	if err != nil {
    		t.Fatalf("Failed to read stack usage: %v", err)
    	}
    	if expected, got := 100<<10, stackUsage; got > expected {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 16:44:47 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  4. src/runtime/syscall_windows_test.go

    	_, err = cmd.CombinedOutput()
    	if err == nil {
    		t.Error("test program succeeded unexpectedly")
    	}
    }
    
    func TestWindowsStackMemory(t *testing.T) {
    	o := runTestProg(t, "testprog", "StackMemory")
    	stackUsage, err := strconv.Atoi(o)
    	if err != nil {
    		t.Fatalf("Failed to read stack usage: %v", err)
    	}
    	if expected, got := 100<<10, stackUsage; got > expected {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 16:31:35 UTC 2023
    - 32.5K bytes
    - Viewed (0)
Back to top