Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 694 for Atack (0.03 sec)

  1. src/runtime/gc_test.go

    	// further move the stack.
    	new2 := uintptr(unsafe.Pointer(new))
    
    	t.Logf("old stack pointer %x, new stack pointer %x", old, new2)
    	if new2 == old {
    		// Check that we didn't screw up the test's escape analysis.
    		if cls := runtime.GCTestPointerClass(unsafe.Pointer(new)); cls != "stack" {
    			t.Fatalf("test bug: new (%#x) should be a stack pointer, not %s", new2, cls)
    		}
    		// This was a real failure.
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. src/runtime/sys_darwin_arm64.go

    //
    // It finds the first available slot using pthread_key_create and uses
    // it as the offset value for runtime.tlsg.
    //
    // This runs at startup on g0 stack, but before g is set, so it must
    // not split stack (transitively). g is expected to be nil, so things
    // (e.g. asmcgocall) will skip saving or reading g.
    //
    //go:nosplit
    func tlsinit(tlsg *uintptr, tlsbase *[_PTHREAD_KEYS_MAX]uintptr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 30 03:11:18 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  3. src/runtime/chan.go

    	// There are unlocked sudogs that point into gp's stack. Stack
    	// copying must lock the channels of those sudogs.
    	// Set activeStackChans here instead of before we try parking
    	// because we could self-deadlock in stack growth on the
    	// channel lock.
    	gp.activeStackChans = true
    	// Mark that it's safe for stack shrinking to occur now,
    	// because any thread acquiring this G's stack for shrinking
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  4. test/fixedbugs/issue8132.go

    // run
    
    // Copyright 2014 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // issue 8132. stack walk handling of panic stack was confused
    // about what was legal.
    
    package main
    
    import "runtime"
    
    var p *int
    
    func main() {
    	func() {
    		defer func() {
    			runtime.GC()
    			recover()
    		}()
    		var x [8192]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 534 bytes
    - Viewed (0)
  5. src/runtime/lock_sema.go

    	gp.m.blocked = false
    }
    
    //go:nosplit
    func notetsleep_internal(n *note, ns int64, gp *g, deadline int64) bool {
    	// gp and deadline are logically local variables, but they are written
    	// as parameters so that the stack space they require is charged
    	// to the caller.
    	// This reduces the nosplit footprint of notetsleep_internal.
    	gp = getg()
    
    	// Register for wakeup on n->waitm.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. src/runtime/testdata/testprogcgo/bigstack_windows.go

    extern void bigStack(callback*);
    */
    import "C"
    
    func init() {
    	register("BigStack", BigStack)
    }
    
    func BigStack() {
    	// Create a large thread stack and call back into Go to test
    	// if Go correctly determines the stack bounds.
    	C.bigStack((*C.callback)(C.CallGoBigStack1))
    }
    
    //export goBigStack1
    func goBigStack1(x *C.char) {
    	println("OK")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 12 16:07:12 UTC 2021
    - 586 bytes
    - Viewed (0)
  7. src/context/x_test.go

    			buf := make([]byte, 10<<10)
    			n := runtime.Stack(buf, true)
    			t.Fatalf("timed out after %v waiting for <-ctx.Done(); stacks:\n%s", d, buf[:n])
    		}
    	}
    	// Wait for all the cancel functions to return.
    	done := make(chan struct{})
    	go func() {
    		wg.Wait()
    		close(done)
    	}()
    	select {
    	case <-done:
    	case <-stuck:
    		buf := make([]byte, 10<<10)
    		n := runtime.Stack(buf, true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  8. src/net/main_test.go

    func runningGoroutines() []string {
    	var gss []string
    	b := make([]byte, 2<<20)
    	b = b[:runtime.Stack(b, true)]
    	for _, s := range strings.Split(string(b), "\n\n") {
    		_, stack, _ := strings.Cut(s, "\n")
    		stack = strings.TrimSpace(stack)
    		if !strings.Contains(stack, "created by net") {
    			continue
    		}
    		gss = append(gss, stack)
    	}
    	slices.Sort(gss)
    	return gss
    }
    
    func printInflightSockets() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. src/runtime/lock_js.go

    	for n, nt := range notesWithTimeout {
    		if n.key == note_cleared && now >= nt.deadline {
    			n.key = note_timeout
    			goready(nt.gp, 1)
    		}
    	}
    }
    
    // events is a stack of calls from JavaScript into Go.
    var events []*event
    
    type event struct {
    	// g was the active goroutine when the call from JavaScript occurred.
    	// It needs to be active when returning to JavaScript.
    	gp *g
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:02:20 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  10. src/internal/trace/internal/oldtrace/parser.go

    	EvGoSleep           event.Type = 19 // goroutine calls Sleep [timestamp, stack]
    	EvGoBlock           event.Type = 20 // goroutine blocks [timestamp, stack]
    	EvGoUnblock         event.Type = 21 // goroutine is unblocked [timestamp, goroutine id, seq, stack]
    	EvGoBlockSend       event.Type = 22 // goroutine blocks on chan send [timestamp, stack]
    	EvGoBlockRecv       event.Type = 23 // goroutine blocks on chan recv [timestamp, stack]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 46.8K bytes
    - Viewed (0)
Back to top