Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for unminit (0.15 sec)

  1. src/runtime/os_linux.go

    // Called on the new thread, cannot allocate memory.
    func minit() {
    	minitSignals()
    
    	// Cgo-created threads and the bootstrap m are missing a
    	// procid. We need this for asynchronous preemption and it's
    	// useful in debuggers.
    	getg().m.procid = uint64(gettid())
    }
    
    // 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: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  2. src/runtime/os_windows.go

    }
    
    // Called from dropm to undo the effect of an minit.
    //
    //go:nosplit
    func unminit() {
    	mp := getg().m
    	lock(&mp.threadLock)
    	if mp.thread != 0 {
    		stdcall1(_CloseHandle, mp.thread)
    		mp.thread = 0
    	}
    	unlock(&mp.threadLock)
    
    	mp.procid = 0
    }
    
    // Called from exitm, but not from drop, to undo the effect of thread-owned
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  3. src/runtime/proc.go

    	}
    	mp.isExtraInSig = false
    
    	// Block signals before unminit.
    	// Unminit unregisters the signal handling stack (but needs g on some systems).
    	// Setg(nil) clears g, which is the signal handler's cue not to run Go handlers.
    	// It's important not to try to handle a signal between those two steps.
    	sigmask := mp.sigmask
    	sigblock(false)
    	unminit()
    
    	setg(nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testsanitizers/testdata/msan8.go

    	int i;
    
    	msanGoSignalThread = pthread_self();
            __atomic_store_n(&msanGoSignalThreadSet, 1, __ATOMIC_SEQ_CST);
    
    	// Force uninit to be undefined for msan.
    	__msan_poison(&uninit, sizeof uninit);
    	for (i = 0; i < 100; i++) {
    		msanGoWait(uninit, uninit, uninit, uninit, uninit, uninit);
            }
    }
    
    // msanGoReady returns whether msanGoSignalThread is set.
    int msanGoReady() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:30:58 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. test/noinit.go

    Cuong Manh Le <******@****.***> 1675970456 +0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 17:57:36 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  6. pkg/util/smallset/smallset_test.go

    	assert.Equal(t, nset.Contains("d"), true)
    	assert.Equal(t, nset.Contains("e"), false)
    	assert.Equal(t, nset.Contains("z"), true)
    }
    
    func TestNew(t *testing.T) {
    	var uninit smallset.Set[string]
    	assert.Equal(t, uninit.IsNil(), true)
    	assert.Equal(t, uninit.IsEmpty(), true)
    	empty := smallset.New[string]()
    	assert.Equal(t, empty.IsNil(), true)
    	assert.Equal(t, empty.IsEmpty(), true)
    	empty2 := smallset.New[string]([]string{}...)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/GradlePluginIntegrationTest.groovy

            setup:
            def externalInitFile = temporaryFolder.createFile("initscripts/somePath/anInit.gradle")
            externalInitFile << """
            buildFinished {
                println "Gradle Plugin received build finished!"
            }
            """
            when:
            initFile << """
            apply from: "somePath/anInit.gradle"
            """
            then:
            def executed = succeeds('tasks')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 18 22:31:11 UTC 2020
    - 3.6K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modcmd/init.go

    Gopkg.lock), and the current directory (if in GOPATH).
    
    See https://golang.org/ref/mod#go-mod-init for more about 'go mod init'.
    `,
    	Run: runInit,
    }
    
    func init() {
    	base.AddChdirFlag(&cmdInit.Flag)
    	base.AddModCommonFlags(&cmdInit.Flag)
    }
    
    func runInit(ctx context.Context, cmd *base.Command, args []string) {
    	if len(args) > 1 {
    		base.Fatalf("go: 'go mod init' accepts at most one argument")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 15:51:46 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. src/cmd/go/internal/workcmd/init.go

    current go version will also be listed in the go.work file.
    
    See the workspaces reference at https://go.dev/ref/mod#workspaces
    for more information.
    `,
    	Run: runInit,
    }
    
    func init() {
    	base.AddChdirFlag(&cmdInit.Flag)
    	base.AddModCommonFlags(&cmdInit.Flag)
    }
    
    func runInit(ctx context.Context, cmd *base.Command, args []string) {
    	modload.InitWorkfile()
    
    	modload.ForceUseModules = true
    
    	gowork := modload.WorkFilePath()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/profile/profile.go

    		if sample.NumLabel == nil {
    			sample.NumLabel = map[string][]int64{key: value}
    		} else {
    			sample.NumLabel[key] = value
    		}
    		if sample.NumUnit == nil {
    			sample.NumUnit = map[string][]string{key: unit}
    		} else {
    			sample.NumUnit[key] = unit
    		}
    	}
    }
    
    // RemoveNumLabel removes all numerical labels associated with the specified key for all
    // samples in the profile.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top