Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 103 for s_size (0.16 sec)

  1. src/runtime/msize.go

    // Malloc small size classes.
    //
    // See malloc.go for overview.
    // See also mksizeclasses.go for how we decide what size classes to use.
    
    package runtime
    
    // Returns size of the memory block that mallocgc will allocate if you ask for the size,
    // minus any inline space for metadata.
    func roundupsize(size uintptr, noscan bool) (reqSize uintptr) {
    	reqSize = size
    	if reqSize <= maxSmallSize-mallocHeaderSize {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. src/internal/coverage/encodemeta/encodefile.go

    	mhsz := uint64(unsafe.Sizeof(coverage.MetaFileHeader{}))
    	stSize := m.stab.Size()
    	stOffset := mhsz + uint64(16*len(blobs))
    	preambleLength := stOffset + uint64(stSize)
    
    	if m.debug {
    		fmt.Fprintf(os.Stderr, "=+= sizeof(MetaFileHeader)=%d\n", mhsz)
    		fmt.Fprintf(os.Stderr, "=+= preambleLength=%d stSize=%d\n", preambleLength, stSize)
    	}
    
    	// Compute total size
    	tlen := preambleLength
    	for i := 0; i < len(blobs); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 11 12:40:42 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/msrpc/srvsvc.idl

    		int type;
    		[string] wchar_t *remark;
    		uint32_t permissions;
    		uint32_t max_uses;
    		uint32_t current_uses;
    		[string] wchar_t *path;
    		[string] wchar_t *password;
    		uint32_t sd_size;
    		[size_is(sd_size)] uint8_t *security_descriptor;
    	} ShareInfo502;
    
    	typedef struct {
    		int count;
    		[size_is(count)] ShareInfo502 *array;
    	} ShareInfoCtr502;
    
    	typedef [switch_type(int)] union {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc

                                std::vector<TfLiteDimensionType>* format,
                                std::vector<int>* b_map, std::vector<int>* b_size) {
      const int dims_count = block_size.size();
      traversal_order->resize(dims_count);
      format->resize(dims_count);
      for (int i = 0; i < dims_count; i++) {
        (*traversal_order)[i] = i;
      }
      for (int i = 0; i < dims_count - 1; i++) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  5. src/runtime/testdata/testprogcgo/sigstack.go

    	st.ss_sp = (char*)base;
    	st.ss_flags = 0;
    	st.ss_size = CSIGSTKSZ;
    	if (sigaltstack(&st, &ost) < 0) {
    		perror("sigaltstack failed");
    		abort();
    	}
    
    	// Call Go.
    	SigStackCallback();
    
    	// Disable signal stack and protect it so we can detect reuse.
    	if (ost.ss_flags & SS_DISABLE) {
    		// Darwin libsystem has a bug where it checks ss_size
    		// even if SS_DISABLE is set. (The kernel gets it right.)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/sigaltstack.go

    #endif
    
    static stack_t oss;
    static char signalStack[CSIGSTKSZ];
    
    static void changeSignalStack(void) {
    	stack_t ss;
    	memset(&ss, 0, sizeof ss);
    	ss.ss_sp = signalStack;
    	ss.ss_flags = 0;
    	ss.ss_size = CSIGSTKSZ;
    	if (sigaltstack(&ss, &oss) < 0) {
    		perror("sigaltstack");
    		abort();
    	}
    }
    
    static void restoreSignalStack(void) {
    #if (defined(__x86_64__) || defined(__i386__)) && defined(__APPLE__)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. src/runtime/mpagealloc_64bit.go

    	have := makeAddrRange(chunksBase+haveMin*scSize, chunksBase+haveMax*scSize)
    	need := makeAddrRange(chunksBase+needMin*scSize, chunksBase+needMax*scSize)
    
    	// Subtract any overlap from rounding. We can't re-map memory because
    	// it'll be zeroed.
    	need = need.subtract(have)
    
    	// If we've got something to map, map it, and update the slice bounds.
    	if need.size() != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 03 11:00:10 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/dcerpc/msrpc/srvsvc.idl

    		int type;
    		[string] wchar_t *remark;
    		uint32_t permissions;
    		uint32_t max_uses;
    		uint32_t current_uses;
    		[string] wchar_t *path;
    		[string] wchar_t *password;
    		uint32_t sd_size;
    		[size_is(sd_size)] uint8_t *security_descriptor;
    	} ShareInfo502;
    
    	typedef struct {
    		int count;
    		[size_is(count)] ShareInfo502 *array;
    	} ShareInfoCtr502;
    
    	typedef [switch_type(int)] union {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  9. src/runtime/testdata/testprogcgo/stackswitch.c

    	if (stack1 == NULL) {
    		perror("malloc");
    		exit(1);
    	}
    
    	if (getcontext(&uctx_switch) == -1) {
    		perror("getcontext");
    		exit(1);
    	}
    	uctx_switch.uc_stack.ss_sp = stack1;
    	uctx_switch.uc_stack.ss_size = STACK_SIZE;
    	uctx_switch.uc_link = &uctx_save;
    	makecontext(&uctx_switch, stackSwitchCallback, 0);
    
    	if (swapcontext(&uctx_save, &uctx_switch) == -1) {
    		perror("swapcontext");
    		exit(1);
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 15:17:33 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  10. src/runtime/cgo/gcc_solaris_amd64.c

    	// Solaris processes report a tiny stack when run with "ulimit -s unlimited".
    	// Correct that as best we can: assume it's at least 1 MB.
    	// See golang.org/issue/12210.
    	if(ctx.uc_stack.ss_size < 1024*1024)
    		g->stacklo -= 1024*1024 - ctx.uc_stack.ss_size;
    
    	// Sanity check the results now, rather than getting a
    	// morestack on g0 crash.
    	if (g->stacklo >= g->stackhi) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 14:57:16 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top