Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for VirtualAlloc (0.13 sec)

  1. src/runtime/race/race_windows_test.go

    	// are implemented inside of race runtime.
    	kernel32 := syscall.NewLazyDLL("kernel32.dll")
    	VirtualAlloc := kernel32.NewProc("VirtualAlloc")
    	VirtualFree := kernel32.NewProc("VirtualFree")
    	const (
    		MEM_COMMIT     = 0x00001000
    		MEM_RESERVE    = 0x00002000
    		MEM_RELEASE    = 0x8000
    		PAGE_READWRITE = 0x04
    	)
    	mem, _, err := syscall.Syscall6(VirtualAlloc.Addr(), 4, 0, 1<<20, MEM_COMMIT|MEM_RESERVE, PAGE_READWRITE, 0, 0)
    	if err != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  2. src/runtime/mem_windows.go

    	r := stdcall3(_VirtualFree, uintptr(v), n, _MEM_DECOMMIT)
    	if r != 0 {
    		return
    	}
    
    	// Decommit failed. Usual reason is that we've merged memory from two different
    	// VirtualAlloc calls, and Windows will only let each VirtualFree handle pages from
    	// a single VirtualAlloc. It is okay to specify a subset of the pages from a single alloc,
    	// just not pages from multiple allocs. This is a rare case, arising only when we're
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. src/internal/syscall/windows/memory_windows.go

    package windows
    
    type MemoryBasicInformation struct {
    	// A pointer to the base address of the region of pages.
    	BaseAddress uintptr
    	// A pointer to the base address of a range of pages allocated by the VirtualAlloc function.
    	// The page pointed to by the BaseAddress member is contained within this allocation range.
    	AllocationBase uintptr
    	// The memory protection option when the region was initially allocated
    	AllocationProtect uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 20 00:18:04 UTC 2022
    - 940 bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    //sys	VirtualLock(addr uintptr, length uintptr) (err error)
    //sys	VirtualUnlock(addr uintptr, length uintptr) (err error)
    //sys	VirtualAlloc(address uintptr, size uintptr, alloctype uint32, protect uint32) (value uintptr, err error) = kernel32.VirtualAlloc
    //sys	VirtualFree(address uintptr, size uintptr, freetype uint32) (err error) = kernel32.VirtualFree
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  5. src/runtime/os_windows.go

    //go:cgo_import_dynamic runtime._SwitchToThread SwitchToThread%0 "kernel32.dll"
    //go:cgo_import_dynamic runtime._TlsAlloc TlsAlloc%0 "kernel32.dll"
    //go:cgo_import_dynamic runtime._VirtualAlloc VirtualAlloc%4 "kernel32.dll"
    //go:cgo_import_dynamic runtime._VirtualFree VirtualFree%3 "kernel32.dll"
    //go:cgo_import_dynamic runtime._VirtualQuery VirtualQuery%3 "kernel32.dll"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    	procUpdateProcThreadAttribute                            = modkernel32.NewProc("UpdateProcThreadAttribute")
    	procVirtualAlloc                                         = modkernel32.NewProc("VirtualAlloc")
    	procVirtualFree                                          = modkernel32.NewProc("VirtualFree")
    	procVirtualLock                                          = modkernel32.NewProc("VirtualLock")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
Back to top