Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 604 for Atack (0.04 sec)

  1. src/runtime/mpagecache.go

    }
    
    // flush empties out unallocated free pages in the given cache
    // into s. Then, it clears the cache, such that empty returns
    // true.
    //
    // p.mheapLock must be held.
    //
    // Must run on the system stack because p.mheapLock must be held.
    //
    //go:systemstack
    func (c *pageCache) flush(p *pageAlloc) {
    	assertLockHeld(p.mheapLock)
    
    	if c.empty() {
    		return
    	}
    	ci := chunkIndex(c.base)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 14:30:00 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/callback_windows.go

    	}
    	return i;
    #else
    	return 0;
    #endif
    }
    */
    import "C"
    
    import (
    	"internal/testenv"
    	"reflect"
    	"runtime"
    	"strings"
    	"testing"
    	"unsafe"
    )
    
    // Test that the stack can be unwound through a call out and call back
    // into Go.
    func testCallbackCallersSEH(t *testing.T) {
    	testenv.SkipIfOptimizationOff(t) // This test requires inlining.
    	if runtime.Compiler != "gc" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 16:01:37 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. src/log/slog/value.go

    			rv = AnyValue(fmt.Errorf("LogValue panicked\n%s", stack(3, 5)))
    		}
    	}()
    
    	for i := 0; i < maxLogValues; i++ {
    		if v.Kind() != KindLogValuer {
    			return v
    		}
    		v = v.LogValuer().LogValue()
    	}
    	err := fmt.Errorf("LogValue called too many times on Value of type %T", orig.Any())
    	return AnyValue(err)
    }
    
    func stack(skip, nFrames int) string {
    	pcs := make([]uintptr, nFrames+1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/writebarrier.go

    	if !ok {
    		v.Fatalf("store aux is not a type: %s", v.LongString())
    	}
    	if !t.HasPointers() {
    		return false
    	}
    	dst := v.Args[0]
    	if IsStackAddr(dst) {
    		return false // writes into the stack don't need write barrier
    	}
    	// If we're writing to a place that might have heap pointers, we need
    	// the write barrier.
    	if mightContainHeapPointer(dst, t.Size(), v.MemoryArg(), zeroes) {
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 23.5K bytes
    - Viewed (0)
  5. src/cmd/trace/jsontrace_test.go

    	}
    }
    
    // filterStackRootFunc returns an event filter that returns true if the function
    // at the root of the stack trace is named name.
    func filterStackRootFunc(name string) eventFilterFn {
    	return func(e *format.Event, data *format.Data) bool {
    		frames := stackFrames(data, e.Stack)
    		rootFrame := frames[len(frames)-1]
    		return strings.HasPrefix(rootFrame, name+":")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. src/syscall/exec_bsd.go

    // they might have been locked at the time of the fork. This means
    // no rescheduling, no malloc calls, and no new stack segments.
    // For the same reason compiler does not race instrument it.
    // The calls to RawSyscall are okay because they are assembly
    // functions that do not grow the stack.
    //
    //go:norace
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  7. src/net/packetconn_test.go

    // license that can be found in the LICENSE file.
    
    // This file implements API tests across platforms and should never have a build
    // constraint.
    
    package net
    
    import (
    	"os"
    	"testing"
    )
    
    // The full stack test cases for IPConn have been moved to the
    // following:
    //	golang.org/x/net/ipv4
    //	golang.org/x/net/ipv6
    //	golang.org/x/net/icmp
    
    func packetConnTestData(t *testing.T, network string) ([]byte, func()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. src/cmd/trace/gstate.go

    func (gs *gState[R]) setStartCause(ts trace.Time, name string, resource uint64, stack trace.Stack) {
    	gs.startCause.time = ts
    	gs.startCause.name = name
    	gs.startCause.resource = resource
    	gs.startCause.stack = stack
    }
    
    // created indicates that this goroutine was just created by the provided creator.
    func (gs *gState[R]) created(ts trace.Time, creator R, stack trace.Stack) {
    	if creator == R(noResource) {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  9. src/runtime/mgcstack.go

    // on the stack whose address is taken, and which themselves contain a
    // pointer. We call these variables "stack objects".
    //
    // We begin by determining all the stack objects on the stack and all
    // the statically live pointers that may point into the stack. We then
    // process each pointer to see if it points to a stack object. If it
    // does, we scan that stack object. It may contain pointers into the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 21:06:52 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  10. src/runtime/histogram_test.go

    package runtime_test
    
    import (
    	"math"
    	. "runtime"
    	"testing"
    )
    
    var dummyTimeHistogram TimeHistogram
    
    func TestTimeHistogram(t *testing.T) {
    	// We need to use a global dummy because this
    	// could get stack-allocated with a non-8-byte alignment.
    	// The result of this bad alignment is a segfault on
    	// 32-bit platforms when calling Record.
    	h := &dummyTimeHistogram
    
    	// Record exactly one sample in each bucket.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 16:32:01 UTC 2022
    - 3.5K bytes
    - Viewed (0)
Back to top