- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for mmmp (0.07 sec)
-
src/cmd/link/internal/ld/outbuf_mmap.go
// license that can be found in the LICENSE file. //go:build unix package ld import ( "syscall" ) // Mmap maps the output file with the given size. It unmaps the old mapping // if it is already mapped. It also flushes any in-heap data to the new // mapping. func (out *OutBuf) Mmap(filesize uint64) (err error) { oldlen := len(out.buf) if oldlen != 0 { out.munmap() } for {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:20:31 UTC 2024 - 1.4K bytes - Viewed (0) -
src/runtime/mem_linux.go
// prevents us from allocating more stack. // //go:nosplit func sysAllocOS(n uintptr) unsafe.Pointer { p, err := mmap(nil, n, _PROT_READ|_PROT_WRITE, _MAP_ANON|_MAP_PRIVATE, -1, 0) if err != 0 { if err == _EACCES { print("runtime: mmap: access denied\n") exit(2) } if err == _EAGAIN { print("runtime: mmap: too much locked memory (check 'ulimit -l').\n") exit(2) } return nil } return p }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 5K bytes - Viewed (0) -
src/cmd/link/internal/ld/outbuf_nommap.go
//go:build !unix && !windows package ld // Mmap allocates an in-heap output buffer with the given size. It copies // any old data (if any) to the new buffer. func (out *OutBuf) Mmap(filesize uint64) error { // We need space to put all the symbols before we apply relocations. oldheap := out.heap if filesize < uint64(len(oldheap)) { panic("mmap size too small") } out.heap = make([]byte, filesize)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:20:31 UTC 2024 - 660 bytes - Viewed (0) -
src/syscall/linkname_unix.go
//go:build unix package syscall import _ "unsafe" // for linkname // mmap should be an internal detail, // but widely used packages access it using linkname. // Notable members of the hall of shame include: // - modernc.org/memory // - github.com/ncruces/go-sqlite3 // // Do not remove or change the type signature. // See go.dev/issue/67401. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 532 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/mmap_nomremap.go
// license that can be found in the LICENSE file. //go:build aix || darwin || dragonfly || freebsd || openbsd || solaris || zos package unix var mapper = &mmapper{ active: make(map[*byte][]byte), mmap: mmap, munmap: munmap,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 22:18:42 UTC 2024 - 343 bytes - Viewed (0) -
src/cmd/internal/bio/buf_mmap.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:20:31 UTC 2024 - 1.6K bytes - Viewed (0) -
src/runtime/os_openbsd_syscall2.go
// mmap calls the mmap system call. It is implemented in assembly. // We only pass the lower 32 bits of file offset to the // assembly routine; the higher bits (if required), should be provided // by the assembly routine as 0. // The err result is an OS error code such as ENOMEM. func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (p unsafe.Pointer, err int)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 2.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/counter/parse.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package counter import ( "bytes" "fmt" "strings" "unsafe" "golang.org/x/telemetry/internal/mmap" ) type File struct { Meta map[string]string Count map[string]uint64 } func Parse(filename string, data []byte) (*File, error) { if !bytes.HasPrefix(data, []byte(hdrPrefix)) || len(data) < pageSize {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 14:38:01 UTC 2024 - 1.8K bytes - Viewed (0) -
pilot/pkg/networking/core/match/match.go
case *matcher.Matcher_MatcherTree_: var mmap *matcher.Matcher_MatcherTree_MatchMap switch t := m.MatcherTree.TreeType.(type) { case *matcher.Matcher_MatcherTree_PrefixMatchMap: mmap = t.PrefixMatchMap case *matcher.Matcher_MatcherTree_ExactMatchMap: mmap = t.ExactMatchMap default: return Mapper{}, false } return Mapper{Matcher: mmatcher, Map: mmap.Map}, true } return Mapper{}, false
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 17:09:02 UTC 2024 - 6.2K bytes - Viewed (0) -
src/runtime/sys_openbsd2.go
} func thrkill_trampoline() // mmap is used to do low-level memory allocation via mmap. Don't allow stack // splits, since this function (used by sysAlloc) is called in a lot of low-level // parts of the runtime and callers often assume it won't acquire any locks. // //go:nosplit func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (unsafe.Pointer, int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.7K bytes - Viewed (0)