Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for pcbuf (0.04 sec)

  1. src/runtime/tracestack.go

    	} else if len(pcBuf) > 0 && pcBuf[0] == logicalStackSentinel {
    		// pcBuf contains logical rather than inlined frames, skip has already been
    		// applied, just return it without the sentinel value in pcBuf[0].
    		return copy(dst, pcBuf[1:])
    	}
    
    	var (
    		n          int
    		lastFuncID = abi.FuncIDNormal
    		skip       = pcBuf[0]
    		// skipOrAdd skips or appends retPC to newPCBuf and returns true if more
    		// pcs can be added.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:56 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/runtime/tracecpu.go

    			// do here, we only want to report full records.
    			continue
    		}
    
    		// Construct the stack for insertion to the stack table.
    		nstk := 1
    		pcBuf[0] = logicalStackSentinel
    		for ; nstk < len(pcBuf) && nstk-1 < len(stk); nstk++ {
    			pcBuf[nstk] = uintptr(stk[nstk-1])
    		}
    
    		// Write out a trace event.
    		w := unsafeTraceWriter(gen, trace.cpuBuf[gen%2])
    
    		// Ensure we have a place to write to.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. src/runtime/traceback.go

    		return 0
    	}
    
    	ctxt := u.g.ptr().cgoCtxt[u.cgoCtxt]
    	u.cgoCtxt--
    	cgoContextPCs(ctxt, pcBuf)
    	for i, pc := range pcBuf {
    		if pc == 0 {
    			return i
    		}
    	}
    	return len(pcBuf)
    }
    
    // tracebackPCs populates pcBuf with the return addresses for each frame from u
    // and returns the number of PCs written to pcBuf. The returned PCs correspond
    // to "logical frames" rather than "physical frames"; that is if A is inlined
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  4. src/runtime/mprof.go

    	// pcbuf which is usually given to us by our caller. When it's not, we have
    	// to allocate one here. This will only happen for goroutines that were in a
    	// syscall when the goroutine profile started or for goroutines that manage
    	// to execute before we finish iterating over all the goroutines.
    	if pcbuf == nil {
    		pcbuf = makeProfStack()
    	}
    
    	var u unwinder
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  5. src/runtime/export_test.go

    	return persistentalloc(n, 0, &memstats.other_sys)
    }
    
    // FPCallers works like Callers and uses frame pointer unwinding to populate
    // pcBuf with the return addresses of the physical frames on the stack.
    func FPCallers(pcBuf []uintptr) int {
    	return fpTracebackPCs(unsafe.Pointer(getfp()), pcBuf)
    }
    
    const FramePointerEnabled = framepointer_enabled
    
    var (
    	IsPinned      = isPinned
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/MultiReader.java

          current = it.next().openStream();
        }
      }
    
      @Override
      public int read(char[] cbuf, int off, int len) throws IOException {
        checkNotNull(cbuf);
        if (current == null) {
          return -1;
        }
        int result = current.read(cbuf, off, len);
        if (result == -1) {
          advance();
          return read(cbuf, off, len);
        }
        return result;
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/MultiReader.java

          current = it.next().openStream();
        }
      }
    
      @Override
      public int read(char[] cbuf, int off, int len) throws IOException {
        checkNotNull(cbuf);
        if (current == null) {
          return -1;
        }
        int result = current.read(cbuf, off, len);
        if (result == -1) {
          advance();
          return read(cbuf, off, len);
        }
        return result;
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/native-binaries/windows-resources/groovy/src/hello/cpp/hello.cpp

    #include "hello.h"
    #include "resources.h"
    
    std::string LoadStringFromResource(UINT stringID)
    {
        HINSTANCE instance = GetModuleHandle("hello");
        WCHAR * pBuf = NULL;
        int len = LoadStringW(instance, stringID, reinterpret_cast<LPWSTR>(&pBuf), 0);
        std::wstring wide = std::wstring(pBuf, len);
        return std::string(wide.begin(), wide.end());
    }
    
    void hello() {
        std::string hello = LoadStringFromResource(IDS_HELLO);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 528 bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/LineReader.java

    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public final class LineReader {
      private final Readable readable;
      @CheckForNull private final Reader reader;
      private final CharBuffer cbuf = createBuffer();
      private final char[] buf = cbuf.array();
    
      private final Queue<String> lines = new ArrayDeque<>();
      private final LineBuffer lineBuf =
          new LineBuffer() {
            @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/WindowsResourceHelloWorldApp.groovy

    #include <string>
    #include "hello.h"
    
    std::string LoadStringFromResource(UINT stringID)
    {
        HINSTANCE instance = GetModuleHandle("hello");
        WCHAR * pBuf = NULL;
        int len = LoadStringW(instance, stringID, reinterpret_cast<LPWSTR>(&pBuf), 0);
        std::wstring wide = std::wstring(pBuf, len);
        return std::string(wide.begin(), wide.end());
    }
    
    void DLL_FUNC hello() {
        std::string hello = LoadStringFromResource(IDS_HELLO);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top