Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 131 for getm (0.05 sec)

  1. src/runtime/signal_windows.go

    	callbackLastVCH
    )
    
    // sigFetchGSafe is like getg() but without panicking
    // when TLS is not set.
    // Only implemented on windows/386, which is the only
    // arch that loads TLS when calling getg(). Others
    // use a dedicated register.
    func sigFetchGSafe() *g
    
    func sigFetchG() *g {
    	if GOARCH == "386" {
    		return sigFetchGSafe()
    	}
    	return getg()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 20:32:29 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  2. src/runtime/mgcwork.go

    // A gcWork provides the interface to produce and consume work for the
    // garbage collector.
    //
    // A gcWork can be used on the stack as follows:
    //
    //	(preemption must be disabled)
    //	gcw := &getg().m.p.ptr().gcw
    //	.. call gcw.put() to produce and gcw.tryGet() to consume ..
    //
    // It's important that any use of gcWork during the mark phase prevent
    // the garbage collector from transitioning to mark termination since
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  3. src/runtime/os_plan9.go

    	var buf [_ERRMAX]byte
    	if !atomic.Cas(&exiting, 0, 1) {
    		return
    	}
    	getg().m.locks++
    	n := copy(buf[:], goexits)
    	n = copy(buf[n:], gostringnocopy(status))
    	pid := getpid()
    	for mp := (*m)(atomic.Loadp(unsafe.Pointer(&allm))); mp != nil; mp = mp.alllink {
    		if mp.procid != 0 && mp.procid != pid {
    			postnote(mp.procid, buf[:])
    		}
    	}
    	getg().m.locks--
    }
    
    var procdir = []byte("/proc/")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/decompose_reduce_dataset.cc

      for (Type type : dataset_types) {
        shape_attrs.push_back(
            TF::ShapeAttr::get(builder.getContext(), mlir::cast<ShapedType>(type)));
        type_attrs.push_back(TypeAttr::get(getElementTypeOrSelf(type)));
      }
    
      auto anonymous_iterator = builder.create<AnonymousIteratorV3Op>(
          reduce_dataset.getLoc(),
          RankedTensorType::get({}, builder.getType<ResourceType>()),
          /*output_types=*/builder.getArrayAttr(type_attrs),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14K bytes
    - Viewed (0)
  5. pkg/controller/statefulset/stateful_set_utils.go

    		ordinal = int(i)
    	}
    	return parent, ordinal
    }
    
    // getParentName gets the name of pod's parent StatefulSet. If pod has not parent, the empty string is returned.
    func getParentName(pod *v1.Pod) string {
    	parent, _ := getParentNameAndOrdinal(pod)
    	return parent
    }
    
    // getOrdinal gets pod's ordinal. If pod has no ordinal, -1 is returned.
    func getOrdinal(pod *v1.Pod) int {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/state/TaskCustomTypesInputPropertyIntegrationTest.groovy

    import org.gradle.api.tasks.Optional;
    import java.io.File;
    
    public class SomeTask extends DefaultTask {
        public CustomType v;
        @Input @Optional
        public CustomType getV() { return v; }
    
        public File f;
        @OutputDirectory
        public File getF() { return f; }
    
        @TaskAction
        public void go() { }
    }
    """
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 22 16:04:50 UTC 2022
    - 9.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/func.go

    	}
    	if t.NumResults() == 1 {
    		n.SetType(l.Type().Result(0).Type)
    
    		if n.Op() == ir.OCALLFUNC && n.Fun.Op() == ir.ONAME {
    			if sym := n.Fun.(*ir.Name).Sym(); types.RuntimeSymName(sym) == "getg" {
    				// Emit code for runtime.getg() directly instead of calling function.
    				// Most such rewrites (for example the similar one for math.Sqrt) should be done in walk,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  8. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/tasks/InitBuildSpec.groovy

            Language.GROOVY | JavaLanguageVersion.of(11) | true
            Language.CPP    | null                       | false
            Language.SWIFT  | null                       | false
        }
    
        def "gets java-version from property"() {
            given:
            def userQuestions = Mock(UserQuestions)
            def buildInitializer = Mock(BuildInitializer)
            buildInitializer.supportsJavaTargets() >> true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:43 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/catalog/LibrariesSourceGeneratorTest.groovy

                bundle('myBundle', ['foo', 'bar'])
                plugin('pl', 'org.plugin') version('1.2')
            }
    
            then:
            def libs = sources.compile()
            def foo = libs.foo.get()
            def bar = libs.bar.get()
            assert foo.module.group == 'g'
            assert foo.module.name == 'a'
            assert foo.versionConstraint.requiredVersion == 'v'
    
            assert bar.module.group == 'g2'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:24 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  10. src/runtime/os_freebsd.go

    	// FreeBSD users are running a patched kernel. See issue #15658.
    	if gp := getg(); !isarchive && !islibrary && gp.m == &m0 && gp == gp.m.g0 {
    		st := stackt{ss_flags: _SS_DISABLE}
    		sigaltstack(&st, nil)
    	}
    
    	minitSignals()
    }
    
    // Called from dropm to undo the effect of an minit.
    //
    //go:nosplit
    func unminit() {
    	unminitSignals()
    	getg().m.procid = 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
Back to top