- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 48 for creation (0.35 sec)
-
src/cmd/cgo/internal/test/setgid2_linux.go
// Copyright 2022 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. // Stress test setgid and thread creation. A thread // can get a SIGSETXID signal early on at thread // initialization, causing crash. See issue 53374. package cgotest /* #include <sys/types.h> #include <unistd.h> */ import "C" import ( "runtime" "testing" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 681 bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_predicates.go
// For example, two [Named] types can be identical only if their // [Named.Obj] methods return the same [TypeName] symbol. // A collection of symbols is consistent if, for each logical // package whose path is P, the creation of those symbols // involved at most one call to [NewPackage](P, ...). // To ensure consistency, use a single [Importer] for // all loaded packages and their dependencies.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 16:36:08 UTC 2024 - 3.3K bytes - Viewed (0) -
src/cmd/compile/internal/test/reproduciblebuilds_test.go
t.Parallel() for _, test := range tests { test := test t.Run(test, func(t *testing.T) { t.Parallel() var want []byte tmp, err := os.CreateTemp("", "") if err != nil { t.Fatalf("temp file creation failed: %v", err) } defer os.Remove(tmp.Name()) defer tmp.Close() for i := 0; i < iters; i++ { // Note: use -c 2 to expose any nondeterminism which is the result // of the runtime scheduler.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 06 18:07:35 UTC 2023 - 2.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/named.go
// arguments, recording pos as the position of its synthetic object (for error // reporting). // // If set, expanding is the named type instance currently being expanded, that // led to the creation of this instance. func (check *Checker) newNamedInstance(pos syntax.Pos, orig *Named, targs []Type, expanding *Named) *Named { assert(len(targs) > 0) obj := NewTypeName(pos, orig.obj.pkg, orig.obj.name, nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 23.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver.go
err = fmt.Errorf("Config.Importer.Import(%s) returned nil but no error", path) } } // make sure we have a valid package name // (errors here can only happen through manipulation of packages after creation) if err == nil && imp != nil && (imp.name == "_" || imp.name == "") { err = fmt.Errorf("invalid package name: %q", imp.name) imp = nil // create fake package below } if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 26.3K bytes - Viewed (0) -
src/cmd/go/internal/work/action.go
} tmp, err := os.MkdirTemp(cfg.Getenv("GOTMPDIR"), "go-build") if err != nil { base.Fatalf("go: creating work dir: %v", err) } if !filepath.IsAbs(tmp) { abs, err := filepath.Abs(tmp) if err != nil { os.RemoveAll(tmp) base.Fatalf("go: creating work dir: %v", err) } tmp = abs } b.WorkDir = tmp builderWorkDirs.Store(b, b.WorkDir)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:39:17 UTC 2024 - 32.7K bytes - Viewed (0) -
src/cmd/compile/internal/rangefunc/rewrite.go
// Rewrite for vars := range X { ... } to // // { // r.declStmt // call // checks // } // // The r.declStmt can be added to by this loop or any inner loop // during the creation of r.bodyFunc; it is only emitted in the outermost // converted range loop. block := &syntax.BlockStmt{Rbrace: end} setPos(block, start) if len(r.forStack) == 1 && r.declStmt != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 41.6K bytes - Viewed (0) -
src/cmd/cgo/doc.go
// Copyright 2009 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. /* Cgo enables the creation of Go packages that call C code. # Using cgo with the go command To use cgo write normal Go code that imports a pseudo-package "C". The Go code can then refer to types such as C.size_t, variables such as C.stdout, or functions such as C.putchar.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 17:12:16 UTC 2024 - 42.2K bytes - Viewed (0) -
src/bytes/bytes_test.go
t.Errorf("last appended result was %s; want %s", x, want) } } } } // Test case for any function which accepts and returns a byte slice. // For ease of creation, we write the input byte slice as a string. type StringTest struct { in string out []byte } var upperTests = []StringTest{ {"", []byte("")}, {"ONLYUPPER", []byte("ONLYUPPER")},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 56.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/poset.go
// Most internal data structures are pre-allocated and flat, so for instance adding a // new relation does not cause any allocation. For performance reasons, // each node has only up to two outgoing edges (like a binary tree), so intermediate // "extra" nodes are required to represent more than two relations. For instance, // to record that A<I, A<J, A<K (with no known relation between I,J,K), we create the // following DAG: // // A // / \
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 04 17:23:05 UTC 2023 - 37.2K bytes - Viewed (0)