Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 246 for unfortunate (0.27 sec)

  1. test/escape_reflect.go

    	return v.String()
    }
    
    // Unfortunate: should only escape to result.
    func interface1(x any) any { // ERROR "leaking param: x$"
    	v := reflect.ValueOf(x)
    	return v.Interface()
    }
    
    func interface2(x int) any {
    	v := reflect.ValueOf(x) // ERROR "x escapes to heap"
    	return v.Interface()
    }
    
    // Unfortunate: should not escape.
    func interface3(x int) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  2. src/internal/types/testdata/fixedbugs/issue51339.go

    func ( /* ERROR "got 1 type parameter, but receiver base type declares 2" */ T /* ERROR "not enough type arguments for type" */ [_]) m1() {
    }
    func (T[_, _]) m2() {}
    
    // TODO(gri) this error is unfortunate (issue #51343)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 00:50:55 UTC 2023
    - 722 bytes
    - Viewed (0)
  3. src/runtime/cgo/gcc_util.c

    	it also runs a bunch of user-supplied malloc hooks.
    
    	So we choose strncpy(_, _, 0): it requires an extra header,
    	but it's standard and should be very efficient.
    
    	GCC 7 has an unfortunate habit of optimizing out strncpy calls (see
    	https://golang.org/issue/21196), so the arguments here need to be global
    	variables with external linkage in order to ensure that the call traps all the
    	way down into libc.
    	*/
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 18:49:38 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  4. analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/KotlinCompositeProviderFactory.kt

            providers.flatMap { provider ->
                // `KotlinCompositeProvider<P>` should always be a provider of type `P` itself, so the cast is legal. Still, suppressing the
                // error is unfortunate, but to properly type this, we'd need to be able to restrict `KotlinCompositeProvider<P>` to be a
                // subtype of `P`, which is not possible in Kotlin.
                @Suppress("UNCHECKED_CAST")
                when (provider) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. src/runtime/cgo/gcc_linux_amd64.c

    	   library.  Avoid this problem by forcing a call to malloc
    	   here, before we ever call malloc.
    
    	   This is only required for the memory sanitizer, so it's
    	   unfortunate that we always run it.  It should be possible
    	   to remove this when we no longer care about versions of
    	   clang before 3.8.  The test for this is
    	   misc/cgo/testsanitizers.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:06:46 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. src/runtime/cgo/gcc_linux_arm64.c

    	   library.  Avoid this problem by forcing a call to malloc
    	   here, before we ever call malloc.
    
    	   This is only required for the memory sanitizer, so it's
    	   unfortunate that we always run it.  It should be possible
    	   to remove this when we no longer care about versions of
    	   clang before 3.8.  The test for this is
    	   misc/cgo/testsanitizers.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:06:46 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. src/runtime/cgo/gcc_libinit_windows.c

    #include <stdio.h>
    #include <stdlib.h>
    #include <errno.h>
    
    #include "libcgo.h"
    #include "libcgo_windows.h"
    
    // Ensure there's one symbol marked __declspec(dllexport).
    // If there are no exported symbols, the unfortunate behavior of
    // the binutils linker is to also strip the relocations table,
    // resulting in non-PIE binary. The other option is the
    // --export-all-symbols flag, but we don't need to export all symbols
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  8. platforms/software/antlr/src/main/java/org/gradle/api/plugins/antlr/internal/antlr2/GrammarDelegate.java

    import java.lang.reflect.Method;
    import java.util.ArrayList;
    import java.util.Enumeration;
    import java.util.List;
    
    /**
     * Antlr defines its {@link antlr.preprocessor.Grammar} class as package-protected for some unfortunate reason. So this class acts as a delegate to the Antlr {@link antlr.preprocessor.Grammar} class,
     * hiding all the ugly necessary reflection code.
     */
    public class GrammarDelegate {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 14:52:10 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  9. src/internal/coverage/pkid.go

    // "internal/cpu", etc. To handle this, hard-code the package ID for
    // the set of packages whose functions may be running before the
    // init function of the package is complete.
    //
    // Hardcoding is unfortunate because it means that the tool that does
    // coverage instrumentation has to keep a list of runtime packages,
    // meaning that if someone makes changes to the pkg "runtime"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. okhttp/build.gradle.kts

           can"t benefit from incremental build acceleration, because on every
           execution it sees that the classpath has changed, and so to be
           safe, it needs to re-run.
    
           - This is unfortunate, because actually it would be safe to declare
           the task as up-to-date, because these two files, which are based on
           the generated index.xml, are outputs, not inputs. We can be sure of
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Jan 04 05:32:07 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top