Summary: 413 instances, 353 unique Text Count // TODO: BuildN 1 // It is kind complex128 but not type complex128. TODO: We can handle this unsafely. 2 // TODO: This could still be a confusing error; maybe goodFunc should provide info. 1 // TODO: The BSDs can do utimensat with SYS_UTIMENSAT but it 1 deb.r.Read(b) // TODO: CHECK THESE READS!! 1 // TODO: make cgo not depend on $GOARCH? 1 // TODO: For big endian implementation, do not reverse bytes. 1 // It is kind uintptr but not type uintptr. TODO: We can handle this unsafely. 2 // TODO: handle relative paths of recursive expansions in different directories? 1 // TODO: What is the latency cost of this? Tune this value. 1 // TODO: Anything for tagProfile_DropFrames? 1 // TODO: pass safe to packEface so we don't need to copy if safe==true? 2 // TODO: It would be nice if ExecError was more broken down, but 1 // FIXME: We should free the old value. 1 // TODO: once issue 7921 is fixed, this should be reverted to 1 // TODO: detect whether string may have to be normalized in the following 1 // TODO: deprecate 2 // FIXME: This approach doesn't work for switch statements, because 2 // TODO: if large prefixes of sep are matching 1 // TODO: We could probably make this faster by 1 // TODO: check that any declared content-length matches, like 1 // TODO: Auto-generate some day. (Hard-coded in binaries so not likely to change.) 2 // get the type from the initializer. FIXME: If we combine lowering 1 // TODO: should we catch panics from the called method? 1 // FIXME: This optimization is disabled because it doesn't yet work 1 // FIXME: Could handle conversion from const []int here. 1 // TODO: See issue 5279. The printing of commands needs a complete redo. 1 // TODO: These are dregs left by Makefile-based builds. 1 // moving x to the heap. FIXME: Is it worth doing a real escape 1 // It is kind complex64 but not type complex64. TODO: We can handle this unsafely. 2 typ.tflag = 0 // TODO: set tflagRegularMemory 1 // If the function uses a closure, then we need a thunk. FIXME: We 1 // FIXME: The package we are importing does not yet exist, so we 1 // TODO: RFC 3875 isn't clear if only GET is supported, but it 1 // TODO: care? unlike http/1, it won't mess up our framing, so it's 1 // TODO: use separate type for "strong" directionality. 1 // TODO: implement 1 // It is kind int16 but not type int16. TODO: We can handle this unsafely. 2 // FIXME: LOCATION is slightly wrong here. 2 // TODO: revert this back to a global map once golang.org/issue/2559 is fixed. 2 // TODO: Don't busy wait. This loop should really only 1 // FIXME: We don't inline references to nested functions. 1 // FIXME: Can't do traceback of other g. 1 // TODO: reuse overflow buckets instead of using new ones, if there 4 mu sync.Mutex // TODO: maybe switch to RWMutex 1 /* FIXME: Eventually we should dump a stack trace here. */ 1 // TODO: adjust buffer writing sizes based on server config, frame size updates from peer, etc 1 // TODO: Look up nelems from sizeclass and remove this field if it 1 // TODO: the punycode converters require strings as input. 2 // TODO: is this redundant? How could we be in malloc 1 // TODO: enable this padding for all allocations, not just 1 // TODO: call poll with timeout == 0 2 // TODO: it would really be nicer for internal/cpu to figure out this 1 // TODO: For big endian, these slices should be in reverse byte order, 1 // TODO: For big endian, use the same index values as found 1 // TODO: this condition should not be possible, but we leave it 1 // TODO: For big endian implementation, the bytes in these slices should be in reverse order, 1 var cipherSuites = []*cipherSuite{ // TODO: replace with a map, since the order doesn't matter. 1 // FIXME: The embed.file type has a hash field, which is 1 // FIXME: We don't do this for gccgo. 1 // TODO: pprof's remapMappingIDs makes two adjustments: 1 // TODO: maybe post-process output to prevent it from containing 1 // TODO: using CompactClass would result in noticeable speedup. 1 // TODO returns a non-nil, empty Context. Code should use context.TODO when 1 // FIXME: Improve network poller for hurd. 1 // TODO: Note that this fails if nil is shadowed. 1 if atomic.Load(&sched.nmspinning)+atomic.Load(&sched.npidle) == 0 && atomic.Cas(&sched.nmspinning, 0, 1) { // TODO: fast atomic 1 // TODO: find a better API and expose. 1 // TODO: use os.ReadDir 1 continue // TODO: report error? proceed? 1 // FIXME: Probably we shouldn't accept '.', but that might break 2 // FIXME: If all of the methods in the right hand side interface 1 // TODO: accept N and Ni independently? 1 // TODO: print gp, pc, sp 1 // TODO: return an error if WriteHeader gets a return parameter 1 b := bigIntToFiatP521(curve.B) // TODO: precompute this value. 1 // TODO: Could use git cat-file --batch. 1 // TODO: we should probably do the same for unions. Unions can't live 1 // TODO above. 1 Args: []parse.Node{parse.NewIdentifier(identifier).SetTree(nil).SetPos(pos)}, // TODO: SetTree. 1 // It is kind float32 but not type float32. TODO: We can handle this unsafely. 2 // one NEW_OBJECT with the same name. FIXME: This does not free the 1 // TODO: Since traceAllocBlock is now go:notinheap, this isn't necessary. 1 // TODO add dynimport ordinal support. 2 // TODO: also do this if we've written the headers but not 1 // FIXME: This should be in line with symbols that are parsed, 1 // TODO: elide nop 1 // TODO: opt: use a perfect hash function instead of a global map. 1 // TODO: normalize quotes. 1 // (See also the TODO below.) 1 // TODO: other transformations in spec or practice? 1 // TODO: Consider making two passes where the first 1 // FIXME: We should check traverse_functions here if nested 1 // TODO: These should be locals in testAtomic64, but we don't 8-byte 1 // TODO: optionally enforce? Or enforce at the time we receive 1 // TODO: more of "8.1.2.2 Connection-Specific Header Fields" 1 // TODO: what happens if the position is > len(input)? This should return an error. 1 // FIXME: Should only work when compiling the runtime package. 4 // TODO: adjust this writer size to account for frame size + 1 // TODO: Use this as the return type of sysAlloc, persistentAlloc, etc? 1 // TODO: SetMaxDynamicTableSize, SetMaxDynamicTableSizeLimit on 1 // TODO: allow for a quick check of the tables data. 1 // TODO: using this for bidirule reduces the running time by about 5%. Consider 1 // It is kind float64 but not type float64. TODO: We can handle this unsafely. 2 saX = sa[x] // TODO bounds check 4 // 12/20/2019: Is this TODO still correct? 1 if !bytes.Equal(h0, h) { // TODO: constant time? 1 // TODO: fix one day? 2 // TODO: read from sysconf(_SC_IOV_MAX)? The Linux default is 1 // TODO: implement ReadByte (and ReadRune??). 1 // FIXME: This doesn't work if an archive has two members with the same 1 // TODO: this could be removed if we don't support merging. 1 // It is kind uint16 but not type uint16. TODO: We can handle this unsafely. 2 // FIXME: Not implemented. 1 // TODO: create the decomposition for Hangul? 1 // TODO: limit the amount copied on first try. 1 // TODO: support and handle two-byte inline masks 1 // TODO: check if db.driver supports an optional 1 t.Align = 1 // TODO: should probably base this on field alignment. 1 // TODO: The .swig and .swigcxx files can use 1 // FIXME: Turn this off until we straighten out the type of the 1 // TODO: make chain use Span (is going to be fun to implement!) 1 go117LazyTODO = false 1 // TODO: if anybody asks, add a Server field, and remember to define the 1 // TODO: Should scanobject/scanblock just stuff pointers into 1 // TODO: For now, simply ignore the field. In the near 1 // FIXME: We also have to implement 1 // TODO: For big endian, bytes don't need to be reversed. 1 // TODO: should we special-case cancellation? 1 asmWriteBP = re(`,\s*BP$`) // TODO: can have false positive, e.g. for TESTQ BP,BP. Seems unlikely. 1 // TODO: Relax these checks; issue 26555. 1 // TODO: impose length limit 1 // TODO: do whatever the spec ends up doing. 1 // TODO: remove more Connection-specific header fields here, in addition 1 // TODO: unsupported encoding 1 if m >= 63 { // TODO: proper overflow check. making this up. 1 // TODO: Assists should get credit for this 1 // TODO: detect cycles before calling Marshal which loops infinitely on 1 // TODO: also store bidi info for mapped data. This is possible, but a bit 1 // TODO: consider using strings.Trim(x, " \t") instead, 1 var cipherSuitesTLS13 = []*cipherSuiteTLS13{ // TODO: replace with a map. 1 // TODO: Improve scoring algorithm. 1 // TODO: map err to more interesting error codes, once the 1 /*TODO if math.MaxUint32 < x { 2 // TODO: Is this check needed? 1 // TODO: Handle types defined within function. 1 // TODO: loosen these conditions. 1 // TODO: remove this method and make it incremental later? This is 1 r2.URL = cloneURL(r.URL) // legacy behavior; TODO: try to remove. Issue 23544 1 // TODO: Impose limits on command output size. 1 // TODO: see writeResHeaders.staysWithinBuffer 1 // TODO: Handle types defined within a function. 1 // showing the TODO body. 1 // FIXME: we never delete imp; we may need it for inlinable functions. 1 bz2.wantBlockCRC = uint32(br.ReadBits64(32)) // skip checksum. TODO: check it if we can figure out what it is. 1 // TODO: Use maxSize or drop it. 1 // TODO: decide whether to a) use this in the client code (which didn't 1 // It is kind bool but not type bool. TODO: We can handle this unsafely. 2 // TODO: remove this string search and be more like the Windows 1 // TODO: is this correct? 1 // TODO: judging by RFC 7540, Section 6.5.3 each SETTINGS frame should be 1 // TODO: consider supporing target.Is(err). This would allow 1 // TODO: use a sorted array instead? 1 // TODO: Perhaps allow comparison between signed and unsigned integers. 1 var errRequestCanceledConn = errors.New("net/http: request canceled while waiting for connection") // TODO: unify? 1 // TODO: consider handling cases where: 1 // Convert the length and capacity to "int". FIXME: Do we need to 1 // FIXME: It would be nice to say that this test is expected 1 // FIXME: Wouldn't it be better if the call is assigned to a temporary 1 // TODO: Maybe allow contents of a Value to live on the stack. 2 // reading data (see possible TODO at top of 1 // TODO: Perfect for go:nosplitrec since we can't have a safe point 1 // TODO: update when package unicode captures more of the properties. 2 // TODO: Performance here is really sensitive to the 1 // TODO: add method *Decoder.Reset(maxSize, emitFunc) to let callers re-use Decoders and their 1 // FIXME: We don't yet support all kinds of calls. 1 // TODO: configurable? 1 // TODO: do clients send GOAWAY too? maybe? Just Close: 1 // TODO: let getReadBuf be configurable, and use a less memory-pinning 1 // need to change. TODO: This should be cleaned up. 1 // TODO: this is a common one. It'd be nice to return true 1 // TODO: move elsewhere? 1 // TODO: Not really a problem; could change API without effect but 2 // TODO: CGO_FLAGS? 1 // TODO: add support for sharing conns based on cert names 1 // TODO: For big endian, use index found in s390x implementation. 1 // TODO: let transformers implement an optional Spanner interface, akin 1 // TODO: Worth doing better? Probably not, because we're here only 1 // TODO: filter need for normalization in loop below. 1 // go1117LazyTODO is a constant that exists only until lazy loading is 1 // TODO: also add this to x/net/http2.Configure Transport, behind 1 // TODO: map out.MaxPathLen to 0 if it has the -1 default value? (Issue 19285) 1 // It is kind int8 but not type int8. TODO: We can handle this unsafely. 2 atomic.Xadd(&sched.npidle, 1) // TODO: fast atomic 1 // TODO: A "go:nosplitrec" annotation would be perfect for this. 1 // TODO: restore this functionality on Windows. We tried to do 1 // TODO: have separate type for "strong" directionality. 1 // TODO: Consider caching this in the running G. 1 // TODO: inline. 1 // TODO: ignoring lang in sv[1] for now. If anybody needs it we'll 1 // Set the tag. FIXME: This is never freed. 1 // FIXME: Can a function expression appear in a constant expression? 1 // FIXME: Ideally CacheLineSize would be dependent on the host architecture. 1 // TODO: MXCSR register? 1 // TODO: We could clear out buffers just before mark if this 1 // FIXME: It's silly to make a forward declaration every time. 1 // Whether we have seen any errors. FIXME: Replace with a backend 1 // TODO: Should have original compilation 1 // FIXME: write a type pretty printer instead of 1 // TODO: we don't need to do this if the variable is not captured 1 // It is kind int but not type int. TODO: We can handle this unsafely. 2 // TODO: handle V2008 2 // TODO: could do better allocation-wise here, but trailers are rare, 1 // TODO: try to understand what's really going on. 1 // TODO: emptyRest is hard to use here, as we start iterating 1 // TODO: Use pkgsFilter? 1 // TODO: using CompactClass results in noticeable speedup. 1 // TODO: Since traceBuf is now go:notinheap, this isn't necessary. 1 // TODO: Currently our best solution is to find these manually and list them as 1 // TODO: Don't build a shared library, once SWIG emits the necessary 1 if build.Default.GOARCH != "amd64" { // TODO: arm64 also? 1 list *mSpanList // For debugging. TODO: Remove. 1 // TODO: send more details to the peer somehow. But http2 has 1 // TODO: Should we allow else-if in with and range? 1 // TODO: this parsing is somewhat lame and not exact. 1 // TODO: It would be nicer if we could 1 // TODO: Anything for tagProfile_KeepFrames? 1 // TODO: validate r.Method too? At least it's less likely to 1 // TODO: fix test_main to avoid race and improve caching, also allowing to 1 // TODO: IsPrint is a local implementation of unicode.IsPrint, verified by the tests 1 // TODO: This file contains the special casing rules for Turkish and Azeri only. 1 // TODO: don't repeat the wrapped error's message when %w occurs in the middle. 1 // TODO: do we need more commands? asm? cgo? For now, no. 1 // TODO: For big endian, use index values as found in s390x implementation. 1 // TODO: pass safe boolean from valueInterface so 2 // TODO: For big endian, the index should be 31 not 0. 1 // FIXME: pathconf returns long, not int. 1 // TODO: handle errors better. 1 // TODO: handle the NV8 defined in the Unicode idna data set to allow 2 // FIXME: This should get a traceback of callergp. 1 // TODO: Pick a better sub-sample of the Plan 9 palette. 1 // TODO: suspendG blocks (and spins) until gp 1 // TODO: the current error handling is, in my opinion, the least opinionated. 2 // TODO: send a RST_STREAM 1 // TODO: write h12Compare test showing whether 1 // TODO: return an error? golang.org/issue/14048 1 atomic.Xadd(&sched.npidle, -1) // TODO: fast atomic 1 } else { // TODO: what's a good status code for canceled requests? 400? 1 // TODO: This ignores shadowing. 1 // It is kind int32 but not type int32. TODO: We can handle this unsafely. 2 // TODO: error reporting detail 1 // TODO: don't close a cc if it was just added to the pool 1 // TODO: This padding is only performed when the race detector 1 http2defaultMaxStreams = 250 // TODO: make this 100 as the GFE seems to? 1 // TODO: care about exact syntax of chunk extensions? We're 1 // TODO: Implement this 6 // FIXME: It might be clever to add something about the processor 1 // TODO: care? unlike http/1, it won't mess up our framing, so it's 1 // TODO: Test and delete these conditions. 1 // TODO: FPCR? I don't think we'll change it, so no need to save. 1 // FIXME: Creating a new object for each reference to a variable is 1 // TODO: Issue 26303: close HTTP/2 conns as soon as they become idle. 1 // It is kind uint but not type uint. TODO: We can handle this unsafely. 2 // TODO: pick a less arbitrary value? this is a bit under 1 // Get the backend representation of a nil type. FIXME: Is this ever 1 // TODO: Disable complaint about '0' for Go 1.10. To be fixed properly in 1.11. 1 // TODO: consider supporting target.Is(err). This would allow 1 // TODO: specify which of the caller and callee is responsible for IP 1 // TODO: Implement solaris (see https://golang.org/issue/8106) 1 // TODO: Set environment to get English error messages. 1 // TODO: delete once the compiler does a reliably 1 // FIXME: This should get a traceback of gp.m.curg. 1 // It is kind int64 but not type int64. TODO: We can handle this unsafely. 2 // TODO: it would be safer to only do this if 1 // TODO: Replace with a better alternative: 1 // TODO(bradfitz,brainman): use ctx more. See TODO below. 1 // TODO: remove this once we've matched the parser resolution exactly. 1 // It is kind uint64 but not type uint64. TODO: We can handle this unsafely. 2 // It is kind uint32 but not type uint32. TODO: We can handle this unsafely. 2 // TODO: It would be much better if we didn't 1 // TODO: we set HasFunctions if all symbols from samples were symbolized (hasFuncs). 1 // has_padding field. FIXME: This is awkward. We shouldn't 1 // TODO: not implemented on ARM 1 // TODO: use MIB_IF_ROW2.AccessType now that we no longer support 1 // TODO: Should we filter out nils in the fast 1 // TODO: deal with GOAWAY more. particularly the error code 1 // TODO: correct error code. 1 // TODO: handle "%[N]w". 1 // TODO: if the req.ContentLength is large, we allocate memory 1 // TODO: is this still worth it with new memmove impl? 1 // TODO: profiles 2 // TODO: get rid of reorderBuffer. See CL 23460044. 1 // FIXME: get stack trace of different goroutine. 1 // TODO: This handles integer comparisons only. 1 // TODO: remove this helper function once http2 can use build 1 // TODO: could we also get into this state if 1 // FIXME: This assumes that we do not need to save any 1 timer := time.NewTimer(http2prefaceTimeout) // TODO: configurable on *Server? 1 // functions are always defined locally. FIXME: It would be better to 1 // TODO: This would be cleaner if sysReserve could be 1 // TODO: delete? replace with something meaningful? 1 // TODO: Mark it "already zeroed" 1 // It is kind string but not type string. TODO: We can handle this unsafely. 2 // TODO: Is elem guaranteed valid? If so we could avoid this check. 1 // TODO: central lock to access the map is not ideal. 1 // TODO: Split attr and element name part filters so we can recognize known attributes. 1 // TODO: add more here, after collecting data on the common 3 // TODO: We could avoid shading any of the "new" pointers in 1 // TODO: remove indirect function call when golang.org/issue/30548 is fixed 2 // TODO: We could do more by being unsafe. Add a -unsafe flag? 2 if go117LazyTODO { 1 // TODO: test on non-zero extraBytes param. 1 // expression. FIXME: This won't work in general. 1 // only valid until the next Scan/Close. But the TODO is that 1 // TODO: these lookup methods are based on the generated trie code. The returned 1 // TODO test: Doc 1 // TODO: track which type of frame & with which flags was sent 1 // TODO: use singleflight for dialing and addConnCalls? 1 // TODO: use step() 1 // It is kind %[1]s but not type %[1]s. TODO: We can handle this unsafely. 2 // TODO: this is not entirely correct. The error value could be 1 // TODO: perhaps with options. 1 /* FIXME: These are not declared anywhere. */ 1 // the field. FIXME: We should only call this once per referenced 1 // TODO: return error if server tries to RST_STEAM an idle stream 1 // Not for gccgo: stackLock uint32 // sigprof/scang lock; TODO: fold in to atomicstatus 1 // FIXME: We should lower this earlier, but we can't it lower it in 1 // TODO: Benchmark to determine if the pools are necessary. The GC may have 1 line, col := 1, 2 // TODO: Why is this 2? 1 // TODO: split assignments for small struct/array? 1 maxWriteSize uint32 // zero means unlimited; TODO: implement 1 Alignment: 4, // TODO: just for arm5? 1 // TODO: methods for 1 // TODO: Is field guaranteed valid? If so we could avoid this check. 1 // TODO: Consider removing this check after verifying performance is okay. 2 // TODO: consider a req.Body.Close here? or audit that all caller paths do? 1 // TODO: This might be relaxed as in common browsers. 1 // TODO: less copy-happy queue. 1 // TODO: ConnectionError might be overly harsh? Check. 1 // TODO: add CloseWrite to crypto/tls.Conn first 1 // See also TODO in go/constant/value.go. 1 // FIXME: can val_ == NULL and closed_ ! = NULL? 1 // TODO: It would be nice to return an error like "not a module". 1 // FIXME: Not implemented. 4 // TODO: Handle fields that are anonymous structs by 1 // TODO: merge the use of this in the trie. 2 // TODO: be stricter here? only silently ignore things which 1 // TODO: Remove once Makefiles are forgotten. 1 // FIXME: the logic of HashStrBytes, HashStrRevBytes, IndexRabinKarpBytes and HashStr, HashStrRev, 1 // TODO: Use index for big endian as found in s390x implementation. 1 // TODO: This may be unnecessary on Windows, which 1 // TODO: Using streamSafe to determine the boundary isn't the same as 1 // TODO: consider first doing a quick check to see if any of these checks 1