Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for initWork (0.29 sec)

  1. src/cmd/vendor/golang.org/x/mod/sumdb/client.go

    }
    
    // init initializes the client (if not already initialized)
    // and returns any initialization error.
    func (c *Client) init() error {
    	c.initOnce.Do(c.initWork)
    	return c.initErr
    }
    
    // initWork does the actual initialization work.
    func (c *Client) initWork() {
    	defer func() {
    		if c.initErr != nil {
    			c.initErr = fmt.Errorf("initializing sumdb.Client: %v", c.initErr)
    		}
    	}()
    
    	c.tileReader.c = c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 17:50:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  2. src/internal/coverage/cfile/hooks.go

    // license that can be found in the LICENSE file.
    
    package cfile
    
    import "internal/runtime/exithook"
    
    // InitHook is invoked from the main package "init" routine in
    // programs built with "-cover". This function is intended to be
    // called only by the compiler (via runtime/coverage.initHook).
    //
    // If 'istest' is false, it indicates we're building a regular program
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 02:32:19 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. src/runtime/coverage/coverage.go

    // license that can be found in the LICENSE file.
    
    package coverage
    
    import (
    	"internal/coverage/cfile"
    	"io"
    )
    
    // initHook is invoked from main.init in programs built with -cover.
    // The call is emitted by the compiler.
    func initHook(istest bool) {
    	cfile.InitHook(istest)
    }
    
    // WriteMetaDir writes a coverage meta-data file for the currently
    // running program to the directory specified in 'dir'. An error will
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:41:02 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/_builtin/coverage.go

    // in cmd/compile/internal/typecheck
    // to update builtin.go. This is not done automatically
    // to avoid depending on having a working compiler binary.
    
    //go:build ignore
    
    package coverage
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 16:59:48 UTC 2024
    - 437 bytes
    - Viewed (0)
  5. src/cmd/compile/internal/coverage/cover.go

    	// bodies (with counter updates) might be inlined into init.
    	cnames.InitFn.Body.Prepend(assign)
    }
    
    // addInitHookCall generates a call to runtime/coverage.initHook() and
    // inserts it into the package main init function, which will kick off
    // the process for coverage data writing (emit meta data, and register
    // an exit hook to emit counter data).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export_test.cc

    }
    
    TEST_F(ConvertMlirModuleToExportedModelTest, InitNodeNotSetIfLocNameMismatch) {
      // Define a module that initializes a tf.HashTableV2 whose control output node
      // for the initialization is named "init_ok". Since the output control node
      // name does not begin with "init_op" the init node could not have been found
      // after the conversion.
      mlir::OwningOpRef<mlir::ModuleOp> module_op = ParseModuleOpString(R"mlir(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:11:25 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  7. src/math/rand/rand_test.go

    			testExponentialDistribution(t, numTestSamples, rate, seed)
    			if testing.Short() {
    				break
    			}
    		}
    	}
    }
    
    //
    // Table generation tests
    //
    
    func initNorm() (testKn []uint32, testWn, testFn []float32) {
    	const m1 = 1 << 31
    	var (
    		dn float64 = rn
    		tn         = dn
    		vn float64 = 9.91256303526217e-3
    	)
    
    	testKn = make([]uint32, 128)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  8. src/math/rand/v2/rand_test.go

    			testExponentialDistribution(t, numTestSamples, rate, seed)
    			if testing.Short() {
    				break
    			}
    		}
    	}
    }
    
    //
    // Table generation tests
    //
    
    func initNorm() (testKn []uint32, testWn, testFn []float32) {
    	const m1 = 1 << 31
    	var (
    		dn float64 = rn
    		tn         = dn
    		vn float64 = 9.91256303526217e-3
    	)
    
    	testKn = make([]uint32, 128)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/builtin.go

    	return typs[:]
    }
    
    var coverageDecls = [...]struct {
    	name string
    	tag  int
    	typ  int
    }{
    	{"initHook", funcTag, 1},
    }
    
    func coverageTypes() []*types.Type {
    	var typs [2]*types.Type
    	typs[0] = types.Types[types.TBOOL]
    	typs[1] = newSig(params(typs[0]), nil)
    	return typs[:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top