Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 60 for mp (0.03 sec)

  1. src/runtime/debuglog_on.go

    // returns false if this fails.
    func putCachedDlogger(l *dlogger) bool {
    	mp := acquirem()
    	if getg() != mp.gsignal && mp.dlogCache == nil {
    		mp.dlogCache = l
    		releasem(mp)
    		return true
    	}
    	releasem(mp)
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  2. src/runtime/debugcall.go

    		// Save lock state to restore later.
    		mp := gp.m
    		if mp != gp.lockedm.ptr() {
    			throw("inconsistent lockedm")
    		}
    		// Save the external lock count and clear it so
    		// that it can't be unlocked from the debug call.
    		// Note: we already locked internally to the thread,
    		// so if we were locked before we're still locked now.
    		lockedExt = mp.lockedExt
    		mp.lockedExt = 0
    
    		mp.lockedg.set(newg)
    		newg.lockedm.set(mp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 20:50:21 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. src/runtime/os_wasm.go

    }
    
    type sigset struct{}
    
    // Called to initialize a new m (including the bootstrap m).
    // Called on the parent thread (main thread in case of bootstrap), can allocate memory.
    func mpreinit(mp *m) {
    	mp.gsignal = malg(32 * 1024)
    	mp.gsignal.m = mp
    }
    
    //go:nosplit
    func usleep_no_g(usec uint32) {
    	usleep(usec)
    }
    
    //go:nosplit
    func sigsave(p *sigset) {
    }
    
    //go:nosplit
    func msigrestore(sigmask sigset) {
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. src/runtime/print.go

    func printlock() {
    	mp := getg().m
    	mp.locks++ // do not reschedule between printlock++ and lock(&debuglock).
    	mp.printlock++
    	if mp.printlock == 1 {
    		lock(&debuglock)
    	}
    	mp.locks-- // now we know debuglock is held and holding up mp.locks for us.
    }
    
    func printunlock() {
    	mp := getg().m
    	mp.printlock--
    	if mp.printlock == 0 {
    		unlock(&debuglock)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 03:27:26 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. src/image/draw/clip_test.go

    	for _, c := range clipTests {
    		dst := dst0.SubImage(c.dr).(*image.RGBA)
    		src := src0.SubImage(c.sr).(*image.RGBA)
    		r, sp, mp := c.r, c.sp, c.mp
    		if c.nilMask {
    			clip(dst, &r, src, &sp, nil, nil)
    		} else {
    			clip(dst, &r, src, &sp, mask0.SubImage(c.mr), &mp)
    		}
    
    		// Check that the actual results equal the expected results.
    		if !c.r0.Eq(r) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java

            Parameter mp = md.getParameters().get(0);
    
            assertEquals("finalName", mp.getName());
            assertEquals("jarName", mp.getAlias());
            assertEquals("java.lang.String", mp.getType());
            assertEquals("java.lang.String", mp.getImplementation());
            assertTrue(mp.isEditable());
            assertFalse(mp.isRequired());
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Nov 17 15:51:47 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  7. src/runtime/sys_libc.go

    	// Leave caller's PC/SP/G around for traceback.
    	gp := getg()
    	var mp *m
    	if gp != nil {
    		mp = gp.m
    	}
    	if mp != nil && mp.libcallsp == 0 {
    		mp.libcallg.set(gp)
    		mp.libcallpc = getcallerpc()
    		// sp must be the last, because once async cpu profiler finds
    		// all three values to be non-zero, it will use them
    		mp.libcallsp = getcallersp()
    	} else {
    		// Make sure we don't reset libcallsp. This makes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  8. src/runtime/coro.go

    	locked := gp.lockedm != 0
    	if c.mp != nil || locked {
    		if mp != c.mp || mp.lockedInt != c.lockedInt || mp.lockedExt != c.lockedExt {
    			print("coro: got thread ", unsafe.Pointer(mp), ", want ", unsafe.Pointer(c.mp), "\n")
    			print("coro: got lock internal ", mp.lockedInt, ", want ", c.lockedInt, "\n")
    			print("coro: got lock external ", mp.lockedExt, ", want ", c.lockedExt, "\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:18 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. test/fixedbugs/issue29329.go

    }
    
    func (ls LineString) Clone() LineString {
    	ps := MultiPoint(ls)
    	return LineString(ps.Clone())
    }
    
    type MultiPoint []Point
    
    func (mp MultiPoint) Clone() MultiPoint {
    	if mp == nil {
    		return nil
    	}
    
    	points := make([]Point, len(mp))
    	copy(points, mp)
    
    	return MultiPoint(points)
    }
    
    func F1() {
    	cases := []struct {
    		threshold float64
    		length    int
    	}{
    		{0.1, 1118},
    		{0.5, 257},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. src/runtime/os_openbsd.go

    			return -1
    		}
    	}
    }
    
    //go:nosplit
    func semawakeup(mp *m) {
    	atomic.Xadd(&mp.waitsemacount, 1)
    	ret := thrwakeup(uintptr(unsafe.Pointer(&mp.waitsemacount)), 1)
    	if ret != 0 && ret != _ESRCH {
    		// semawakeup can be called on signal stack.
    		systemstack(func() {
    			print("thrwakeup addr=", &mp.waitsemacount, " sem=", mp.waitsemacount, " ret=", ret, "\n")
    		})
    	}
    }
    
    func osinit() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top