Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of about 10,000 for nfinal (0.23 sec)

  1. test/mallocfin.go

    type B struct {
    	n int
    }
    
    var i int
    var nfinal int
    var final [N]int
    
    // the unused return is to test finalizers with return values
    func finalA(a *A) (unused [N]int) {
    	if final[a.n] != 0 {
    		println("finalA", a.n, final[a.n])
    		panic("fail")
    	}
    	final[a.n] = 1
    	return
    }
    
    func finalB(b *B) {
    	if final[b.n] != 1 {
    		println("finalB", b.n, final[b.n])
    		panic("fail")
    	}
    	final[b.n] = 2
    	nfinal++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 07:47:26 UTC 2012
    - 1.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/roundtrip.go

    	// ensure that the object produced from decoding the encoded data is equal
    	// to the original object
    	if !apiequality.Semantic.DeepEqual(original, obj2) {
    		t.Errorf("%v: diff: %v\nCodec: %#v\nSource:\n\n%#v\n\nEncoded:\n\n%s\n\nFinal:\n\n%#v", name, cmp.Diff(original, obj2), codec, dump.Pretty(original), dataAsString(data), dump.Pretty(obj2))
    		return
    	}
    
    	// decode the encoded data into a new object (instead of letting the codec
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  3. src/net/http/transport_test.go

    // Wait until number of goroutines is no greater than nmax, or time out.
    func waitNumGoroutine(nmax int) int {
    	nfinal := runtime.NumGoroutine()
    	for ntries := 10; ntries > 0 && nfinal > nmax; ntries-- {
    		time.Sleep(50 * time.Millisecond)
    		runtime.GC()
    		nfinal = runtime.NumGoroutine()
    	}
    	return nfinal
    }
    
    // tests that persistent goroutine connections shut down when no longer desired.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  4. src/runtime/mfinal.go

    Anuraag Agrawal <******@****.***> 1717647866 +0000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/ModifierUtil.java

        /**
         * <code>final</code>かどうか返します。
         *
         * @param modifier
         *            モディファイヤ
         * @return <code>final</code>なら{@literal true}
         */
        public static boolean isFinal(final int modifier) {
            return Modifier.isFinal(modifier);
        }
    
        /**
         * <code>final</code>かどうか返します。
         *
         * @param method
         *            メソッド
         * @return <code>final</code>なら{@literal true}
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/crypto/CachedCipher.java

            return encrypted;
        }
    
        public byte[] encrypto(final byte[] data, final Key key) {
            final Cipher cipher = pollEncryptoCipher(key);
            byte[] encrypted;
            try {
                encrypted = cipher.doFinal(data);
            } catch (final IllegalBlockSizeException e) {
                throw new IllegalBlockSizeRuntimeException(e);
            } catch (final BadPaddingException e) {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/SipHashFunction.java

     */
    @Immutable
    @ElementTypesAreNonnullByDefault
    final class SipHashFunction extends AbstractHashFunction implements Serializable {
      static final HashFunction SIP_HASH_24 =
          new SipHashFunction(2, 4, 0x0706050403020100L, 0x0f0e0d0c0b0a0908L);
    
      // The number of compression rounds.
      private final int c;
      // The number of finalization rounds.
      private final int d;
      // Two 64-bit keys (represent a single 128-bit key).
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 5.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/hash/SipHashFunction.java

     */
    @Immutable
    @ElementTypesAreNonnullByDefault
    final class SipHashFunction extends AbstractHashFunction implements Serializable {
      static final HashFunction SIP_HASH_24 =
          new SipHashFunction(2, 4, 0x0706050403020100L, 0x0f0e0d0c0b0a0908L);
    
      // The number of compression rounds.
      private final int c;
      // The number of finalization rounds.
      private final int d;
      // Two 64-bit keys (represent a single 128-bit key).
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 5.3K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/beans/impl/MethodDescTest.java

    /**
     * @author koichik
     *
     */
    public class MethodDescTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testFoo() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final MethodDesc foo = beanDesc.getMethodDesc("foo");
            assertThat(foo, is(notNullValue()));
            assertThat(foo.getBeanDesc(), is(sameInstance(beanDesc)));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/reflect/Invokable.java

       * {@code final} keyword. For example, it could be private, or it could be declared by a final
       * class. To tell whether a method is overridable, use {@link Invokable#isOverridable}.
       */
      public final boolean isFinal() {
        return Modifier.isFinal(getModifiers());
      }
    
      /** Returns true if the method is abstract. */
      public final boolean isAbstract() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 18.6K bytes
    - Viewed (0)
Back to top