Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for stkalloc (0.16 sec)

  1. src/regexp/testdata/testregex.c

    	sfprintf(dp->sp, "{%-.*s}(%lu:%d)", xlen, xstr, (char*)data - (char*)0, slen);
    	return atoi(xstr);
    }
    
    static void*
    resizef(void* handle, void* data, size_t size)
    {
    	if (!size)
    		return 0;
    	return stkalloc((Sfio_t*)handle, size);
    }
    
    #endif
    
    #ifndef NiL
    #ifdef	__STDC__
    #define NiL		0
    #else
    #define NiL		(char*)0
    #endif
    #endif
    
    #define H(x)		do{if(html)fprintf(stderr,x);}while(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 51.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/stackalloc.go

    	spill    *Value
    	needSlot bool
    	isArg    bool
    }
    
    // stackalloc allocates storage in the stack frame for
    // all Values that did not get a register.
    // Returns a map from block ID to the stack values live at the end of that block.
    func stackalloc(f *Func, spillLive [][]ID) [][]ID {
    	if f.pass.debug > stackDebug {
    		fmt.Println("before stackalloc")
    		fmt.Println(f.String())
    	}
    	s := newStackAllocState(f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 21:29:41 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. src/runtime/stack.go

    		unlock(&stackpool[order].item.mu)
    	}
    }
    
    // stackalloc allocates an n byte stack.
    //
    // stackalloc must run on the system stack because it uses per-P
    // resources and must not split the stack.
    //
    //go:systemstack
    func stackalloc(n uint32) stack {
    	// Stackalloc must be called on scheduler stack, so that we
    	// never try to grow the stack during the code that stackalloc runs.
    	// Doing so would cause a deadlock (issue 1547).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  4. src/runtime/mpagealloc_32bit.go

    	if test {
    		// Set up the scavenge index via sysAlloc so the test can free it later.
    		scavIndexSize := uintptr(len(scavengeIndexArray)) * unsafe.Sizeof(atomicScavChunkData{})
    		s.chunks = ((*[(1 << heapAddrBits) / pallocChunkBytes]atomicScavChunkData)(sysAlloc(scavIndexSize, sysStat)))[:]
    		mappedReady = scavIndexSize
    	} else {
    		// Set up the scavenge index.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 20 20:08:25 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

      bool IsAllocOnly() const { return IsAlloc() && effects_.count() == 1; }
      bool IsReadOnly() const { return IsRead() && effects_.count() == 1; }
      ResourceId GetResourceId() const { return resource_id_; }
    
      void SetAlloc() { effects_.set(kAlloc); }
      void SetFree() { effects_.set(kFree); }
      void SetRead() { effects_.set(kRead); }
      void SetWrite() { effects_.set(kWrite); }
      void SetUnknownEffect() { effects_.set(); }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/cache.go

    type Cache struct {
    	// Storage for low-numbered values and blocks.
    	values [2000]Value
    	blocks [200]Block
    	locs   [2000]Location
    
    	// Reusable stackAllocState.
    	// See stackalloc.go's {new,put}StackAllocState.
    	stackAllocState *stackAllocState
    
    	scrPoset []*poset // scratch poset to be reused
    
    	// Reusable regalloc state.
    	regallocValues []valState
    
    	ValueToProgAfter []*obj.Prog
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 15 23:00:54 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. src/runtime/malloc.go

    	gcController.memoryLimit.Store(maxInt64)
    }
    
    // sysAlloc allocates heap arena space for at least n bytes. The
    // returned pointer is always heapArenaBytes-aligned and backed by
    // h.arenas metadata. The returned size is always a multiple of
    // heapArenaBytes. sysAlloc returns nil on failure.
    // There is no corresponding free function.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/sigaltstack.go

    	// The Darwin C library enforces a minimum that the kernel does not.
    	// This is OK since we allocated this much space in mpreinit,
    	// it was just removed from the buffer by stackalloc.
    	oss.ss_size = MINSIGSTKSZ;
    #endif
    	if (sigaltstack(&oss, NULL) < 0) {
    		perror("sigaltstack restore");
    		abort();
    	}
    }
    
    static int zero(void) {
    	return 0;
    }
    */
    import "C"
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. src/runtime/cgo_mmap.go

    var _cgo_munmap unsafe.Pointer
    
    // mmap is used to route the mmap system call through C code when using cgo, to
    // support sanitizer interceptors. 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: Fri Aug 25 20:58:13 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  10. src/runtime/internal/sys/nih.go

    // to these types must always fail the `runtime.inheap` check. The type may be used
    // for global variables, or for objects in unmanaged memory (e.g., allocated with
    // `sysAlloc`, `persistentalloc`, r`fixalloc`, or from a manually-managed span).
    //
    // Specifically:
    //
    // 1. `new(T)`, `make([]T)`, `append([]T, ...)` and implicit heap
    // allocation of T are disallowed. (Though implicit allocations are
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 18:24:50 UTC 2022
    - 1.7K bytes
    - Viewed (0)
Back to top