Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for semacquire (0.25 sec)

  1. src/runtime/mgc.go

    	if debug.gcstoptheworld == 1 {
    		mode = gcForceMode
    	} else if debug.gcstoptheworld == 2 {
    		mode = gcForceBlockMode
    	}
    
    	// Ok, we're doing it! Stop everybody else
    	semacquire(&gcsema)
    	semacquire(&worldsema)
    
    	// For stats, check if this GC was forced by the user.
    	// Update it under gcsema to avoid gctrace getting wrong values.
    	work.userForced = trigger.kind == gcTriggerCycle
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  2. src/runtime/mprof.go

    		// allocation estimate without bothering to STW. As long as
    		// this is close, then we'll only need to STW once (on the next
    		// call).
    		return int(gcount()), false
    	}
    
    	semacquire(&goroutineProfile.sema)
    
    	ourg := getg()
    
    	pcbuf := makeProfStack() // see saveg() for explanation
    	stw := stopTheWorld(stwGoroutineProfile)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbSessionImpl.java

            }
    
            if ( usage == 1 ) {
                synchronized ( this ) {
                    if ( this.transportAcquired.compareAndSet(false, true) ) {
                        log.debug("Reacquire transport");
                        this.transport.acquire();
                    }
                }
            }
    
            return this;
        }
    
    
        /**
         * {@inheritDoc}
         *
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Nov 14 17:41:04 UTC 2021
    - 49K bytes
    - Viewed (0)
  4. src/testing/testing.go

    			err := t.runCleanup(recoverAndReturnPanic)
    			t.duration += highPrecisionTimeSince(cleanupStart)
    			if err != nil {
    				doPanic(err)
    			}
    			t.checkRaces()
    			if !t.isParallel {
    				// Reacquire the count for sequential tests. See comment in Run.
    				t.context.waitParallel()
    			}
    		} else if t.isParallel {
    			// Only release the count for this test if it was run as a parallel
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
Back to top