Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 148 for WEAK (0.29 sec)

  1. src/cmd/cgo/internal/test/issue29563/weak.go

    Austin Clements <******@****.***> 1683224724 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 277 bytes
    - Viewed (0)
  2. src/internal/weak/pointer_test.go

    	}
    	for i := range bt {
    		st := wt[i].Strong()
    		if st != bt[i] {
    			t.Fatalf("weak pointer is not the same as strong pointer: %p vs. %p", st, bt[i])
    		}
    		if wp := weak.Make(st); wp != wt[i] {
    			t.Fatalf("new weak pointer not equal to existing weak pointer: %v vs. %v", wp, wt[i])
    		}
    		if i == 0 {
    			continue
    		}
    		if wt[i] == wt[i-1] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/internal/weak/pointer.go

    // is reclaimed.
    //
    // If multiple weak pointers are made to different offsets within same object
    // (for example, pointers to different fields of the same struct), those pointers
    // will not compare equal.
    // If a weak pointer is created from an object that becomes reachable again due
    // to a finalizer, that weak pointer will not compare equal with weak pointers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:13:25 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testsanitizers/testdata/tsan2.go

    extern void GoRun(void);
    
    // Yes, you can have definitions if you use //export, as long as they are weak.
    
    int val __attribute__ ((weak));
    
    int run(void) __attribute__ ((weak));
    
    int run() {
    	val = 1;
    	GoRun();
    	return val;
    }
    
    void setVal(int) __attribute__ ((weak));
    
    void setVal(int i) {
    	val = i;
    }
    */
    import "C"
    
    import "runtime"
    
    //export GoRun
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 940 bytes
    - Viewed (0)
  5. src/unique/handle.go

    	// more than one per racing thread.
    	var (
    		toInsert     *T // Keep this around to keep it alive.
    		toInsertWeak weak.Pointer[T]
    	)
    	newValue := func() weak.Pointer[T] {
    		if toInsert == nil {
    			toInsert = new(T)
    			*toInsert = clone(value, &m.cloneSeq)
    			toInsertWeak = weak.Make(toInsert)
    		}
    		return toInsertWeak
    	}
    	var ptr *T
    	for {
    		// Check the map.
    		wp, ok := m.Load(value)
    		if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testsanitizers/testdata/msan5.go

    package main
    
    // Using reflect to set a value was not seen by msan.
    
    /*
    #include <stdlib.h>
    
    extern void Go1(int*);
    extern void Go2(char*);
    
    // Use weak as a hack to permit defining a function even though we use export.
    void C1() __attribute__ ((weak));
    void C2() __attribute__ ((weak));
    
    void C1() {
    	int i;
    	Go1(&i);
    	if (i != 42) {
    		abort();
    	}
    }
    
    void C2() {
    	char a[2];
    	a[1] = 42;
    	Go2(a);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 904 bytes
    - Viewed (0)
  7. ci/official/containers/linux_arm64/builder.devtoolset/gcc9-fixups.patch

        a function definition to make that definition weak.  */
    @@ -125,14 +131,16 @@
        If weak aliases are not available, this defines a strong alias.  */
     # define weak_alias(name, aliasname) _weak_alias (name, aliasname)
     # define _weak_alias(name, aliasname) \
    -  extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
    +  extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))) \
    +    __attribute_copy__ (name);
     
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 18 14:52:45 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Interners.java

          this.strong = true;
          return this;
        }
    
        /**
         * Instructs the {@link InternerBuilder} to build a weak interner.
         *
         * @see Interners#newWeakInterner()
         */
        @GwtIncompatible("java.lang.ref.WeakReference")
        public InternerBuilder weak() {
          this.strong = false;
          return this;
        }
    
        /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testsanitizers/testdata/msan3.go

    // license that can be found in the LICENSE file.
    
    package main
    
    /*
    extern int *GoFn(int *);
    
    // Yes, you can have definitions if you use //export, as long as they are weak.
    int f(void) __attribute__ ((weak));
    
    int f() {
      int i;
      int *p = GoFn(&i);
      if (*p != 12345)
        return 0;
      return 1;
    }
    */
    import "C"
    
    //export GoFn
    func GoFn(p *C.int) *C.int {
    	*p = C.int(12345)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 552 bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Interners.java

          this.strong = true;
          return this;
        }
    
        /**
         * Instructs the {@link InternerBuilder} to build a weak interner.
         *
         * @see Interners#newWeakInterner()
         */
        @GwtIncompatible("java.lang.ref.WeakReference")
        public InternerBuilder weak() {
          this.strong = false;
          return this;
        }
    
        /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 5.9K bytes
    - Viewed (0)
Back to top