Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for tryGet (0.14 sec)

  1. src/runtime/mgcwork.go

    		gcController.enlistWorker()
    	}
    }
    
    // tryGet dequeues a pointer for the garbage collector to trace.
    //
    // If there are no pointers remaining in this gcWork or in the global
    // queue, tryGet returns 0.  Note that there may still be pointers in
    // other gcWork instances or other caches.
    //
    //go:nowritebarrierrec
    func (w *gcWork) tryGet() uintptr {
    	wbuf := w.wbuf1
    	if wbuf == nil {
    		w.init()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. src/runtime/mgcmark.go

    		// balances.
    		if work.full == 0 {
    			gcw.balance()
    		}
    
    		b := gcw.tryGetFast()
    		if b == 0 {
    			b = gcw.tryGet()
    			if b == 0 {
    				// Flush the write barrier
    				// buffer; this may create
    				// more work.
    				wbBufFlush()
    				b = gcw.tryGet()
    			}
    		}
    		if b == 0 {
    			// Unable to get work.
    			break
    		}
    		scanobject(b, gcw)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  3. platforms/core-runtime/functional/src/test/groovy/org/gradle/internal/TryTest.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.internal
    
    import spock.lang.Specification
    
    class TryTest extends Specification {
    
        def "successful is successful"() {
            expect:
            Try.successful(10).successful
        }
    
        def "failure is mot successful"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:10:49 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. test/fixedbugs/issue44344.go

    package main
    
    func main() {
    	pv := []int{3, 4, 5}
    	if pv[1] != 9 {
    		pv = append(pv, 9)
    	}
    	tryit := func() bool {
    		lpv := len(pv)
    		if lpv == 101 {
    			return false
    		}
    		if worst := pv[pv[1]&1]; worst != 101 {
    			return true
    		}
    		return false
    	}()
    	if tryit {
    		println(pv[0])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 19 14:46:21 UTC 2021
    - 575 bytes
    - Viewed (0)
  5. src/runtime/mkduff.go

    		fmt.Fprintln(w, "\tADDQ\t$16, DI")
    		fmt.Fprintln(w)
    	}
    	fmt.Fprintln(w, "\tRET")
    }
    
    func zero386(w io.Writer) {
    	// AX: zero
    	// DI: ptr to memory to be zeroed
    	// DI is updated as a side effect.
    	fmt.Fprintln(w, "TEXT runtime·duffzero(SB), NOSPLIT, $0-0")
    	for i := 0; i < 128; i++ {
    		fmt.Fprintln(w, "\tSTOSL")
    	}
    	fmt.Fprintln(w, "\tRET")
    }
    
    func copy386(w io.Writer) {
    	// SI: ptr to source memory
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:04:21 UTC 2023
    - 8K bytes
    - Viewed (0)
  6. src/encoding/gob/type_test.go

    // license that can be found in the LICENSE file.
    
    package gob
    
    import (
    	"bytes"
    	"reflect"
    	"sync"
    	"testing"
    )
    
    type typeT struct {
    	id  typeId
    	str string
    }
    
    var basicTypes = []typeT{
    	{tBool, "bool"},
    	{tInt, "int"},
    	{tUint, "uint"},
    	{tFloat, "float"},
    	{tBytes, "bytes"},
    	{tString, "string"},
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:26:13 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/ld_test.go

    		fmt.Fprintf(buf, "\tADD $0, X0, X0\n")
    	}
    	fmt.Fprintf(buf, "\tCALL b(SB)\n")
    	fmt.Fprintf(buf, "\tRET\n")
    	fmt.Fprintf(buf, "TEXT b(SB),$0-0\n")
    	fmt.Fprintf(buf, "\tRET\n")
    	fmt.Fprintf(buf, "TEXT c(SB),$0-0\n")
    	fmt.Fprintf(buf, "\tCALL b(SB)\n")
    	fmt.Fprintf(buf, "\tRET\n")
    	fmt.Fprintf(buf, "TEXT ·d(SB),0,$0-0\n")
    	for i := 0; i < 1<<17; i++ {
    		fmt.Fprintf(buf, "\tADD $0, X0, X0\n")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 05:45:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  8. src/syscall/mkasm.go

    			trampolines[fn] = true
    			fmt.Fprintf(&out, "TEXT ·%s_trampoline(SB),NOSPLIT,$0-0\n", fn)
    			if goos == "openbsd" && arch == "ppc64" {
    				fmt.Fprintf(&out, "\tCALL\t%s(SB)\n", fn)
    				fmt.Fprintf(&out, "\tRET\n")
    			} else {
    				fmt.Fprintf(&out, "\tJMP\t%s(SB)\n", fn)
    			}
    		}
    	}
    	err = os.WriteFile(fmt.Sprintf("zsyscall_%s_%s.s", goos, arch), out.Bytes(), 0644)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 03:24:15 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. src/cmd/link/linkbig_test.go

    	for j := 0; j < FN; j++ {
    		testname := fmt.Sprintf("bigfn%d", j)
    		fmt.Fprintf(&w, "TEXT ·%s(SB),$0\n", testname)
    		for i := 0; i < 2200000; i++ {
    			fmt.Fprintf(&w, inst)
    		}
    		fmt.Fprintf(&w, "\tRET\n")
    		err := os.WriteFile(tmpdir+"/"+testname+".s", w.Bytes(), 0666)
    		if err != nil {
    			t.Fatalf("can't write output: %v\n", err)
    		}
    		w.Reset()
    	}
    	fmt.Fprintf(&w, "package main\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  10. cmd/erasure-object.go

    				return objInfo, InsufficientWriteQuorum{}
    			}
    			tryDel = true // only for unversioned objects if there is write quorum
    		}
    		// For delete marker replication, versionID being replicated will not exist on disk
    		if opts.DeleteMarker {
    			versionFound = false
    		} else if !tryDel {
    			return objInfo, gerr
    		}
    	}
    
    	if opts.EvalMetadataFn != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 78.6K bytes
    - Viewed (0)
Back to top