- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 469 for sloc (4.62 sec)
-
src/runtime/atomic_pointer.go
// Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname atomicwb //go:nosplit func atomicwb(ptr *unsafe.Pointer, new unsafe.Pointer) { slot := (*uintptr)(unsafe.Pointer(ptr)) buf := getg().m.p.ptr().wbBuf.get2() buf[0] = *slot buf[1] = uintptr(new) } // atomicstorep performs *ptr = new atomically and invokes a write barrier. // //go:nosplit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 4K bytes - Viewed (0) -
test/fixedbugs/issue19078.go
u += 1<<13 - 1 // add almost a page for i := 0; i < 1000000; i++ { _ = identity(u) // installs u at return slot _ = liveReturnSlot(nil) // incorrectly marks return slot as live } } //go:noinline func liveReturnSlot(x *int) *int { defer func() {}() // causes return slot to be marked live sink = &x // causes x to be moved to the heap, triggering allocation return x } //go:noinline
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 13 19:39:15 UTC 2017 - 1.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan3.go
// Copyright 2016 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. package main // The stubs for the C functions read and write the same slot on the // g0 stack when copying arguments in and out. /* #cgo CFLAGS: -fsanitize=thread #cgo LDFLAGS: -fsanitize=thread int Func1() { return 0; } void Func2(int x) { (void)x; } */
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 662 bytes - Viewed (0) -
test/codegen/zerosize.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Make sure a pointer variable and a zero-sized variable // aren't allocated to the same stack slot. // See issue 24993. package codegen func zeroSize() { c := make(chan struct{}) // amd64:`MOVQ\t\$0, command-line-arguments\.s\+56\(SP\)` var s *int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 16 18:19:47 UTC 2022 - 650 bytes - Viewed (0) -
src/runtime/stubs_386.go
func uint32tofloat64(a uint32) float64 // stackcheck checks that SP is in range [g->stack.lo, g->stack.hi). func stackcheck() // Called from assembly only; declared for go vet. func setldt(slot uintptr, base unsafe.Pointer, size uintptr) func emptyfunc() //go:noescape func asmcgocall_no_g(fn, arg unsafe.Pointer) // getfp returns the frame pointer register of its caller or 0 if not implemented.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 22 10:04:13 UTC 2023 - 708 bytes - Viewed (0) -
src/cmd/compile/internal/ssa/writebarrier_test.go
// See issue #19067. c := testConfig(t) ptrType := c.config.Types.BytePtr fun := c.Fun("entry", Bloc("entry", Valu("start", OpInitMem, types.TypeMem, 0, nil), Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil), Valu("sp", OpSP, c.config.Types.Uintptr, 0, nil), Goto("loop")), Bloc("loop", Valu("phi", OpPhi, types.TypeMem, 0, nil, "start", "wb"), Valu("v", OpConstNil, ptrType, 0, nil),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 24 15:51:15 UTC 2018 - 1.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/query/TermQueryCommandTest.java
"aaa"); assertQueryBuilder(MatchPhraseQueryBuilder.class, "{\"match_phrase\":{\"title\":{\"query\":\"aaa\",\"slop\":0,\"zero_terms_query\":\"NONE\",\"boost\":1.0}}}", //
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 5.8K bytes - Viewed (0) -
test/fixedbugs/bug369.dir/main.go
package main import ( "flag" "os" "runtime" "testing" fast "./fast" slow "./slow" ) var buf = make([]byte, 1048576) func BenchmarkFastNonASCII(b *testing.B) { for i := 0; i < b.N; i++ { fast.NonASCII(buf, 0) } } func BenchmarkSlowNonASCII(b *testing.B) { for i := 0; i < b.N; i++ { slow.NonASCII(buf, 0) } } func main() { testing.Init()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 29 19:54:30 UTC 2019 - 1.2K bytes - Viewed (0) -
src/runtime/cgo/gcc_android.c
#define TLS_SLOT_APP 2 // inittls allocates a thread-local storage slot for g. // // It finds the first available slot using pthread_key_create and uses // it as the offset value for runtime.tls_g. static void inittls(void **tlsg, void **tlsbase) { pthread_key_t k; int i, err; void *handle, *get_ver, *off; // Check for Android Q where we can use the free TLS_SLOT_APP slot. handle = dlopen("libc.so", RTLD_LAZY);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 09 23:17:17 UTC 2020 - 2.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/schedule_test.go
package ssa import ( "cmd/compile/internal/types" "testing" ) func TestSchedule(t *testing.T) { c := testConfig(t) cases := []fun{ c.Fun("entry", Bloc("entry", Valu("mem0", OpInitMem, types.TypeMem, 0, nil), Valu("ptr", OpConst64, c.config.Types.Int64, 0xABCD, nil), Valu("v", OpConst64, c.config.Types.Int64, 12, nil),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Oct 08 01:46:00 UTC 2022 - 5.6K bytes - Viewed (0)