- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 444 for ts (0.02 sec)
-
test/gcstring.go
time.Sleep(10*time.Millisecond) } func setup() { var Ts []interface{} buf := make([]byte, 128) for i := 0; i < 10000; i++ { s := string(buf) t := &T{ptr: new(*int)} runtime.SetFinalizer(t.ptr, func(**int) { panic("*int freed too early") }) Ts = append(Ts, t) things = append(things, s[len(s):]) } things = append(things, Ts...)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 872 bytes - Viewed (0) -
src/go/types/sizes_test.go
if got := sizes.Sizeof(ts); got != 20 { t.Errorf("Sizeof(%v) with WordSize 4 = %d want 20", ts, got) } sizes = types.StdSizes{WordSize: 8, MaxAlign: 8} if got := sizes.Sizeof(ts); got != 40 { t.Errorf("Sizeof(%v) with WordSize 8 = %d want 40", ts, got) } } // go.dev/issue/16464 func TestAlignofNaclSlice(t *testing.T) { const src = ` package main var s struct { x *int y []byte } `
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 21:00:48 UTC 2023 - 4K bytes - Viewed (0) -
src/runtime/cgo/gcc_util.c
void x_cgo_thread_start(ThreadStart *arg) { ThreadStart *ts; /* Make our own copy that can persist after we return. */ _cgo_tsan_acquire(); ts = malloc(sizeof *ts); _cgo_tsan_release(); if(ts == nil) { fprintf(stderr, "runtime/cgo: out of memory in thread_start\n"); abort(); } *ts = *arg; _cgo_sys_thread_start(ts); /* OS-dependent half */ } #ifndef CGO_TSAN
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 18:49:38 UTC 2017 - 1.8K bytes - Viewed (0) -
src/runtime/memmove_arm.s
AND.S $3, FROM, TMP BNE _bunaligned ADD $31, TS, TMP /* do 32-byte chunks if possible */ MOVW TS, savedts-4(SP) _b32loop: CMP TMP, TE BLS _b4tail MOVM.DB.W (FROM), [R0-R7] MOVM.DB.W [R0-R7], (TE) B _b32loop _b4tail: /* do remaining words if possible */ MOVW savedts-4(SP), TS ADD $3, TS, TMP _b4loop: CMP TMP, TE BLS _b1tail
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 04 07:25:06 UTC 2020 - 5.9K bytes - Viewed (0) -
src/runtime/cgo/gcc_freebsd.c
pthread_sigmask(SIG_SETMASK, &oset, nil); if (err != 0) { fatalf("pthread_create failed: %s", strerror(err)); } } extern void crosscall1(void (*fn)(void), void (*setg_gcc)(void*), void *g); static void* threadentry(void *v) { ThreadStart ts; ts = *(ThreadStart*)v; free(v); crosscall1(ts.fn, setg_gcc, ts.g); return nil;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 03:40:00 UTC 2023 - 1.5K bytes - Viewed (0) -
src/runtime/cgo/gcc_solaris_amd64.c
static void* threadentry(void *v) { ThreadStart ts; ts = *(ThreadStart*)v; free(v); crosscall1(ts.fn, setg_gcc, (void*)ts.g); return nil;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 14:57:16 UTC 2023 - 2K bytes - Viewed (0) -
src/runtime/cgo/gcc_dragonfly_amd64.c
pthread_sigmask(SIG_SETMASK, &oset, nil); if (err != 0) { fatalf("pthread_create failed: %s", strerror(err)); } } extern void crosscall1(void (*fn)(void), void (*setg_gcc)(void*), void *g); static void* threadentry(void *v) { ThreadStart ts; ts = *(ThreadStart*)v; free(v); crosscall1(ts.fn, setg_gcc, (void*)ts.g); return nil;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 03:39:26 UTC 2023 - 1.2K bytes - Viewed (0) -
src/runtime/cgo/gcc_openbsd.c
pthread_sigmask(SIG_SETMASK, &oset, nil); if (err != 0) { fatalf("pthread_create failed: %s", strerror(err)); } } extern void crosscall1(void (*fn)(void), void (*setg_gcc)(void*), void *g); static void* threadentry(void *v) { ThreadStart ts; ts = *(ThreadStart*)v; free(v); crosscall1(ts.fn, setg_gcc, ts.g); return nil;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 03:56:03 UTC 2023 - 1.2K bytes - Viewed (0) -
src/runtime/cgo/gcc_linux_s390x.c
pthread_sigmask(SIG_SETMASK, &oset, nil); if (err != 0) { fatalf("pthread_create failed: %s", strerror(err)); } } extern void crosscall_s390x(void (*fn)(void), void *g); static void* threadentry(void *v) { ThreadStart ts; ts = *(ThreadStart*)v; free(v); // Save g for this thread in C TLS setg_gcc((void*)ts.g); crosscall_s390x(ts.fn, (void*)ts.g); return nil;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 09 03:13:11 UTC 2023 - 1.3K bytes - Viewed (0) -
src/runtime/cgo/gcc_ppc64x.c
pthread_sigmask(SIG_SETMASK, &oset, nil); if (err != 0) { fatalf("pthread_create failed: %s", strerror(err)); } } extern void crosscall_ppc64(void (*fn)(void), void *g); static void* threadentry(void *v) { ThreadStart ts; ts = *(ThreadStart*)v; _cgo_tsan_acquire(); free(v); _cgo_tsan_release(); // Save g for this thread in C TLS setg_gcc((void*)ts.g);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 09 03:13:11 UTC 2023 - 1.3K bytes - Viewed (0)