libgo/go/net/http/h2_bundle.go (45 lines): - line 752: // TODO: use singleflight for dialing and addConnCalls? - line 756: mu sync.Mutex // TODO: maybe switch to RWMutex - line 757: // TODO: add support for sharing conns based on cert names - line 970: // TODO: don't close a cc if it was just added to the pool - line 1039: // TODO: Benchmark to determine if the pools are necessary. The GC may have - line 1593: // TODO: let getReadBuf be configurable, and use a less memory-pinning - line 1599: maxWriteSize uint32 // zero means unlimited; TODO: implement - line 1630: // TODO: track which type of frame & with which flags was sent - line 3418: // TODO: pick a less arbitrary value? this is a bit under - line 3714: http2defaultMaxStreams = 250 // TODO: make this 100 as the GFE seems to? - line 3746: // TODO: implement - line 3827: // TODO: if anybody asks, add a Server field, and remember to define the - line 4096: // TODO: optionally enforce? Or enforce at the time we receive - line 4307: // TODO: remove this helper function once http2 can use build - line 4323: // TODO: remove this string search and be more like the Windows - line 4637: timer := time.NewTimer(http2prefaceTimeout) // TODO: configurable on *Server? - line 4864: // reading data (see possible TODO at top of - line 4975: // TODO: configurable? - line 5019: // TODO: could we also get into this state if - line 5024: // TODO: add CloseWrite to crypto/tls.Conn first - line 5228: // TODO: judging by RFC 7540, Section 6.5.3 each SETTINGS frame should be - line 5584: // TODO: send more details to the peer somehow. But http2 has - line 6024: // TODO: adjust buffer writing sizes based on server config, frame size updates from peer, etc - line 6121: // TODO: remove more Connection-specific header fields here, in addition - line 6366: // TODO: send a RST_STREAM - line 7151: // TODO: consider a req.Body.Close here? or audit that all caller paths do? - line 7272: // TODO: adjust this writer size to account for frame size + - line 7280: // TODO: SetMaxDynamicTableSize, SetMaxDynamicTableSizeLimit on - line 7430: // TODO: do clients send GOAWAY too? maybe? Just Close: - line 7937: // TODO: write h12Compare test showing whether - line 8414: // TODO: also do this if we've written the headers but not - line 8670: // TODO: care? unlike http/1, it won't mess up our framing, so it's - line 8674: // TODO: care? unlike http/1, it won't mess up our framing, so it's - line 8712: // TODO: ConnectionError might be overly harsh? Check. - line 8842: // TODO: be stricter here? only silently ignore things which - line 8924: // TODO: check that any declared content-length matches, like - line 8960: // TODO: deal with GOAWAY more. particularly the error code - line 9049: // TODO: return error if server tries to RST_STEAM an idle stream - line 9140: // TODO: map err to more interesting error codes, once the - line 9412: // TODO: decide whether to a) use this in the client code (which didn't - line 9579: // TODO: this is a common one. It'd be nice to return true - line 9644: // TODO: see writeResHeaders.staysWithinBuffer - line 9739: // TODO: return an error? golang.org/issue/14048 - line 9743: // TODO: more of "8.1.2.2 Connection-Specific Header Fields" - line 9942: // TODO: less copy-happy queue. libgo/go/encoding/gob/dec_helpers.go (17 lines): - line 63: // It is kind bool but not type bool. TODO: We can handle this unsafely. - line 86: // It is kind complex64 but not type complex64. TODO: We can handle this unsafely. - line 111: // It is kind complex128 but not type complex128. TODO: We can handle this unsafely. - line 136: // It is kind float32 but not type float32. TODO: We can handle this unsafely. - line 159: // It is kind float64 but not type float64. TODO: We can handle this unsafely. - line 182: // It is kind int but not type int. TODO: We can handle this unsafely. - line 210: // It is kind int16 but not type int16. TODO: We can handle this unsafely. - line 237: // It is kind int32 but not type int32. TODO: We can handle this unsafely. - line 264: // It is kind int64 but not type int64. TODO: We can handle this unsafely. - line 287: // It is kind int8 but not type int8. TODO: We can handle this unsafely. - line 314: // It is kind string but not type string. TODO: We can handle this unsafely. - line 351: // It is kind uint but not type uint. TODO: We can handle this unsafely. - line 359: /*TODO if math.MaxUint32 < x { - line 378: // It is kind uint16 but not type uint16. TODO: We can handle this unsafely. - line 405: // It is kind uint32 but not type uint32. TODO: We can handle this unsafely. - line 432: // It is kind uint64 but not type uint64. TODO: We can handle this unsafely. - line 455: // It is kind uintptr but not type uintptr. TODO: We can handle this unsafely. libgo/go/encoding/gob/enc_helpers.go (16 lines): - line 62: // It is kind bool but not type bool. TODO: We can handle this unsafely. - line 88: // It is kind complex64 but not type complex64. TODO: We can handle this unsafely. - line 113: // It is kind complex128 but not type complex128. TODO: We can handle this unsafely. - line 138: // It is kind float32 but not type float32. TODO: We can handle this unsafely. - line 161: // It is kind float64 but not type float64. TODO: We can handle this unsafely. - line 184: // It is kind int but not type int. TODO: We can handle this unsafely. - line 206: // It is kind int16 but not type int16. TODO: We can handle this unsafely. - line 228: // It is kind int32 but not type int32. TODO: We can handle this unsafely. - line 250: // It is kind int64 but not type int64. TODO: We can handle this unsafely. - line 272: // It is kind int8 but not type int8. TODO: We can handle this unsafely. - line 294: // It is kind string but not type string. TODO: We can handle this unsafely. - line 317: // It is kind uint but not type uint. TODO: We can handle this unsafely. - line 339: // It is kind uint16 but not type uint16. TODO: We can handle this unsafely. - line 361: // It is kind uint32 but not type uint32. TODO: We can handle this unsafely. - line 383: // It is kind uint64 but not type uint64. TODO: We can handle this unsafely. - line 405: // It is kind uintptr but not type uintptr. TODO: We can handle this unsafely. go/expressions.cc (13 lines): - line 530: // FIXME: If all of the methods in the right hand side interface - line 1099: // FIXME: Creating a new object for each reference to a variable is - line 1464: // FIXME: Can a function expression appear in a constant expression? - line 1585: // FIXME: We don't inline references to nested functions. - line 4180: // FIXME: Could handle conversion from const []int here. - line 4687: // moving x to the heap. FIXME: Is it worth doing a real escape - line 7249: // FIXME: It would be nice to say that this test is expected - line 12822: // FIXME: We don't yet support all kinds of calls. - line 13005: // FIXME: Wouldn't it be better if the call is assigned to a temporary - line 13606: // Convert the length and capacity to "int". FIXME: Do we need to - line 14408: // the field. FIXME: We should only call this once per referenced - line 14826: // FIXME: We should lower this earlier, but we can't it lower it in - line 15080: // FIXME: This optimization is disabled because it doesn't yet work libgo/go/golang.org/x/net/idna/idna10.0.0.go (11 lines): - line 34: // TODO: the current error handling is, in my opinion, the least opinionated. - line 316: // TODO: profiles - line 348: // TODO: allow for a quick check of the tables data. - line 429: // TODO: consider first doing a quick check to see if any of these checks - line 438: // TODO: filter need for normalization in loop below. - line 450: // TODO: handle the NV8 defined in the Unicode idna data set to allow - line 466: // TODO: also store bidi info for mapped data. This is possible, but a bit - line 533: // TODO: the punycode converters require strings as input. - line 621: // TODO: handle V2008 - line 631: // TODO: detect whether string may have to be normalized in the following - line 729: // TODO: merge the use of this in the trie. libgo/go/crypto/elliptic/p256_ppc64le.go (9 lines): - line 101: // TODO: For big endian implementation, do not reverse bytes. - line 132: // TODO: For big endian implementation, the bytes in these slices should be in reverse order, - line 236: // TODO: For big endian, bytes don't need to be reversed. - line 349: // TODO: For big endian, these slices should be in reverse byte order, - line 399: // TODO: For big endian, the index should be 31 not 0. - line 413: // TODO: For big endian, use the same index values as found - line 476: // TODO: For big endian, use index found in s390x implementation. - line 490: // TODO: For big endian, use index values as found in s390x implementation. - line 513: // TODO: Use index for big endian as found in s390x implementation. go/lex.cc (8 lines): - line 2051: // FIXME: Not implemented. - line 2073: // FIXME: Should only work when compiling the runtime package. - line 2074: // FIXME: Not implemented. - line 2081: // FIXME: Should only work when compiling the runtime package. - line 2089: // FIXME: Should only work when compiling the runtime package. - line 2096: // FIXME: Should only work when compiling the runtime package. - line 2103: // FIXME: Not implemented. - line 2110: // FIXME: Not implemented. libgo/go/cmd/cgo/gcc.go (8 lines): - line 1006: // TODO: Note that this fails if nil is shadowed. - line 1048: // TODO: Handle types defined within function. - line 1263: // TODO: This ignores shadowing. - line 2517: // TODO: we should probably do the same for unions. Unions can't live - line 2533: t.Align = 1 // TODO: should probably base this on field alignment. - line 2621: // TODO: it would be safer to only do this if - line 2899: // TODO: Handle fields that are anonymous structs by - line 3099: // TODO: Currently our best solution is to find these manually and list them as go/gogo.cc (8 lines): - line 536: // FIXME: we never delete imp; we may need it for inlinable functions. - line 3957: // FIXME: This approach doesn't work for switch statements, because - line 4252: // FIXME: This approach doesn't work for switch statements, because - line 5822: // FIXME: We should check traverse_functions here if nested - line 6596: // TODO: we don't need to do this if the variable is not captured - line 7715: // get the type from the initializer. FIXME: If we combine lowering - line 8546: // FIXME: We should free the old value. - line 9037: // one NEW_OBJECT with the same name. FIXME: This does not free the libgo/go/cmd/go/internal/work/exec.go (6 lines): - line 1507: // TODO: BuildN - line 2129: // TODO: See issue 5279. The printing of commands needs a complete redo. - line 2750: // TODO: CGO_FLAGS? - line 2759: // TODO: make cgo not depend on $GOARCH? - line 3017: // TODO: Don't build a shared library, once SWIG emits the necessary - line 3333: // TODO: do we need more commands? asm? cgo? For now, no. libgo/go/runtime/mwbbuf.go (6 lines): - line 71: // TODO: What is the latency cost of this? Tune this value. - line 164: // TODO: A "go:nosplitrec" annotation would be perfect for this. - line 238: // TODO: Should scanobject/scanblock just stuff pointers into - line 241: // TODO: We could avoid shading any of the "new" pointers in - line 256: // TODO: Should we filter out nils in the fast - line 271: // TODO: Consider making two passes where the first libgo/go/golang.org/x/net/idna/idna9.0.0.go (6 lines): - line 33: // TODO: the current error handling is, in my opinion, the least opinionated. - line 318: // TODO: profiles - line 431: // TODO: handle the NV8 defined in the Unicode idna data set to allow - line 483: // TODO: the punycode converters require strings as input. - line 571: // TODO: handle V2008 - line 677: // TODO: merge the use of this in the trie. go/types.cc (5 lines): - line 1028: // has_padding field. FIXME: This is awkward. We shouldn't - line 1930: // functions are always defined locally. FIXME: It would be better to - line 5195: // FIXME: Turn this off until we straighten out the type of the - line 5705: // Get the backend representation of a nil type. FIXME: Is this ever - line 7776: // expression. FIXME: This won't work in general. libgo/go/reflect/value.go (5 lines): - line 120: // TODO: pass safe boolean from valueInterface so - line 860: // TODO: pass safe to packEface so we don't need to copy if safe==true? - line 1274: // TODO: deprecate - line 1778: // TODO: deprecate - line 2167: // TODO: Maybe allow contents of a Value to live on the stack. libgo/go/runtime/trace.go (5 lines): - line 132: // TODO: central lock to access the map is not ideal. - line 170: // TODO: Since traceBuf is now go:notinheap, this isn't necessary. - line 547: // TODO: test on non-zero extraBytes param. - line 600: // FIXME: get stack trace of different goroutine. - line 928: // TODO: Since traceAllocBlock is now go:notinheap, this isn't necessary. libgo/go/runtime/proc.go (5 lines): - line 1997: // TODO: This may be unnecessary on Windows, which - line 2281: if atomic.Load(&sched.nmspinning)+atomic.Load(&sched.npidle) == 0 && atomic.Cas(&sched.nmspinning, 0, 1) { // TODO: fast atomic - line 4019: // FIXME: This should get a traceback of callergp. - line 5455: atomic.Xadd(&sched.npidle, 1) // TODO: fast atomic - line 5473: atomic.Xadd(&sched.npidle, -1) // TODO: fast atomic libgo/go/text/template/parse/node.go (4 lines): - line 355: // TODO: fix one day? - line 363: // TODO: fix one day? - line 434: // TODO: Not really a problem; could change API without effect but - line 468: // TODO: Not really a problem; could change API without effect but libgo/go/runtime/pprof/proto.go (4 lines): - line 212: // TODO: we set HasFunctions if all symbols from samples were symbolized (hasFuncs). - line 388: // TODO: Anything for tagProfile_DropFrames? - line 389: // TODO: Anything for tagProfile_KeepFrames? - line 692: // TODO: pprof's remapMappingIDs makes two adjustments: libgo/go/runtime/malloc.go (4 lines): - line 680: // TODO: This would be cleaner if sysReserve could be - line 1200: // TODO: This padding is only performed when the race detector - line 1204: // TODO: enable this padding for all allocations, not just - line 1528: // TODO: Use this as the return type of sysAlloc, persistentAlloc, etc? libgo/go/golang.org/x/text/transform/transform.go (4 lines): - line 204: // TODO: implement ReadByte (and ReadRune??). - line 238: // TODO: limit the amount copied on first try. - line 404: // TODO: make chain use Span (is going to be fun to implement!) - line 605: // TODO: let transformers implement an optional Spanner interface, akin libgo/go/golang.org/x/text/unicode/bidi/bidi.go (3 lines): - line 164: // TODO: what happens if the position is > len(input)? This should return an error. - line 280: // TODO: perhaps with options. - line 304: // TODO: methods for libgo/go/runtime/preempt.go (3 lines): - line 127: // TODO: It would be nicer if we could - line 181: // TODO: It would be much better if we didn't - line 236: // TODO: Don't busy wait. This loop should really only libgo/go/golang.org/x/text/secure/bidirule/bidirule.go (3 lines): - line 269: // TODO: is this correct? - line 275: // TODO: using CompactClass would result in noticeable speedup. - line 314: // TODO: using CompactClass results in noticeable speedup. libgo/go/net/file_windows.go (3 lines): - line 13: // TODO: Implement this - line 18: // TODO: Implement this - line 23: // TODO: Implement this go/import.cc (3 lines): - line 1104: // FIXME: It's silly to make a forward declaration every time. - line 1322: // FIXME: Probably we shouldn't accept '.', but that might break - line 1631: // FIXME: Probably we shouldn't accept '.', but that might break go/statements.cc (3 lines): - line 475: // FIXME: The package we are importing does not yet exist, so we - line 2385: // If the function uses a closure, then we need a thunk. FIXME: We - line 5575: // FIXME: can val_ == NULL and closed_ ! = NULL? libgo/go/html/template/js.go (3 lines): - line 151: // TODO: normalize quotes. - line 164: // TODO: detect cycles before calling Marshal which loops infinitely on - line 177: // TODO: maybe post-process output to prevent it from containing libgo/go/encoding/gob/decgen.go (3 lines): - line 11: // TODO: We could do more by being unsafe. Add a -unsafe flag? - line 127: /*TODO if math.MaxUint32 < x { - line 233: // It is kind %[1]s but not type %[1]s. TODO: We can handle this unsafely. libgo/go/runtime/mprof.go (3 lines): - line 461: // FIXME: This should get a traceback of gp.m.curg. - line 1066: // FIXME: Not implemented. - line 1122: // FIXME: Can't do traceback of other g. libgo/go/syscall/tables_js.go (3 lines): - line 16: // TODO: delete? replace with something meaningful? - line 103: // TODO: Auto-generate some day. (Hard-coded in binaries so not likely to change.) - line 231: // TODO: Auto-generate some day. (Hard-coded in binaries so not likely to change.) libgo/go/golang.org/x/text/unicode/bidi/prop.go (3 lines): - line 17: // TODO: using this for bidirule reduces the running time by about 5%. Consider - line 43: // TODO: find a better API and expose. - line 67: // TODO: these lookup methods are based on the generated trie code. The returned libgo/go/encoding/gob/encode.go (3 lines): - line 323: // TODO: Is field guaranteed valid? If so we could avoid this check. - line 346: // TODO: Is elem guaranteed valid? If so we could avoid this check. - line 471: // TODO: should we catch panics from the called method? go/parse.cc (3 lines): - line 2158: // FIXME: We also have to implement - line 5069: // FIXME: LOCATION is slightly wrong here. - line 5079: // FIXME: LOCATION is slightly wrong here. libgo/go/net/http/request.go (3 lines): - line 362: r2.URL = cloneURL(r.URL) // legacy behavior; TODO: try to remove. Issue 23544 - line 597: // TODO: validate r.Method too? At least it's less likely to - line 718: // TODO: Consider removing this check after verifying performance is okay. libgo/go/internal/reflectlite/value.go (3 lines): - line 117: // TODO: pass safe boolean from valueInterface so - line 279: // TODO: pass safe to packEface so we don't need to copy if safe==true? - line 401: // TODO: Maybe allow contents of a Value to live on the stack. libgo/go/text/template/funcs.go (3 lines): - line 39: // TODO: revert this back to a global map once golang.org/issue/2559 is fixed. - line 72: // TODO: revert this back to a global map once golang.org/issue/2559 is fixed. - line 419: // TODO: Perhaps allow comparison between signed and unsigned integers. libgo/go/golang.org/x/net/http2/hpack/hpack.go (3 lines): - line 146: // TODO: add method *Decoder.Reset(maxSize, emitFunc) to let callers re-use Decoders and their - line 216: // TODO: remove this method and make it incremental later? This is - line 455: if m >= 63 { // TODO: proper overflow check. making this up. libgo/go/index/suffixarray/sais2.go (3 lines): - line 1359: saX = sa[x] // TODO bounds check - line 1390: saX = sa[x] // TODO bounds check - line 1421: saX = sa[x] // TODO bounds check libgo/go/golang.org/x/xerrors/fmt.go (3 lines): - line 47: // TODO: this is not entirely correct. The error value could be - line 63: // TODO: don't repeat the wrapped error's message when %w occurs in the middle. - line 100: // TODO: handle "%[N]w". libgo/go/runtime/mgcmark.go (3 lines): - line 163: // FIXME: We don't do this for gccgo. - line 202: // TODO: suspendG blocks (and spins) until gp - line 931: // TODO: Assists should get credit for this libgo/go/runtime/mheap.go (3 lines): - line 387: list *mSpanList // For debugging. TODO: Remove. - line 410: // TODO: Look up nelems from sizeclass and remove this field if it - line 2015: // TODO: Mark it "already zeroed" go/ast-dump.cc (2 lines): - line 226: // FIXME: write a type pretty printer instead of - line 341: // FIXME: This should be in line with symbols that are parsed, libgo/go/cmd/go/internal/modfetch/codehost/codehost.go (2 lines): - line 301: // TODO: Impose limits on command output size. - line 302: // TODO: Set environment to get English error messages. libgo/go/text/template/exec.go (2 lines): - line 109: // TODO: It would be nice if ExecError was more broken down, but - line 693: // TODO: This could still be a confusing error; maybe goodFunc should provide info. libgo/go/encoding/gob/encgen.go (2 lines): - line 11: // TODO: We could do more by being unsafe. Add a -unsafe flag? - line 211: // It is kind %[1]s but not type %[1]s. TODO: We can handle this unsafely. libgo/go/math/fma.go (2 lines): - line 44: // TODO: Performance here is really sensitive to the - line 148: // TODO: should we special-case cancellation? libgo/go/golang.org/x/text/unicode/bidi/bracket.go (2 lines): - line 232: // TODO: have separate type for "strong" directionality. - line 251: // TODO: use separate type for "strong" directionality. libgo/go/runtime/runtime2.go (2 lines): - line 427: // Not for gccgo: stackLock uint32 // sigprof/scang lock; TODO: fold in to atomicstatus - line 763: // TODO: Consider caching this in the running G. libgo/go/database/sql/sql.go (2 lines): - line 1549: // TODO: check if db.driver supports an optional - line 3319: // only valid until the next Scan/Close. But the TODO is that libgo/runtime/proc.c (2 lines): - line 24: /* FIXME: These are not declared anywhere. */ - line 705: // FIXME: This assumes that we do not need to save any libgo/go/runtime/mkpreempt.go (2 lines): - line 246: // TODO: MXCSR register? - line 345: // TODO: FPCR? I don't think we'll change it, so no need to save. libgo/go/runtime/map.go (2 lines): - line 959: // TODO: emptyRest is hard to use here, as we start iterating - line 1199: // TODO: reuse overflow buckets instead of using new ones, if there libgo/go/mime/mediatype.go (2 lines): - line 245: // TODO: ignoring lang in sv[1] for now. If anybody needs it we'll - line 253: // TODO: unsupported encoding libgo/go/runtime/netpoll_hurd.go (2 lines): - line 9: // FIXME: Improve network poller for hurd. - line 181: // TODO: call poll with timeout == 0 libgo/go/cmd/go/internal/modfetch/codehost/git.go (2 lines): - line 507: // TODO: Could use git cat-file --batch. - line 807: // TODO: Use maxSize or drop it. libgo/go/cmd/go/internal/clean/clean.go (2 lines): - line 213: // TODO: These are dregs left by Makefile-based builds. - line 328: // TODO: Remove once Makefiles are forgotten. libgo/go/cmd/go/internal/modload/modfile.go (2 lines): - line 53: // go1117LazyTODO is a constant that exists only until lazy loading is - line 56: go117LazyTODO = false libgo/go/net/http/cgi/host.go (2 lines): - line 369: // TODO: RFC 3875 isn't clear if only GET is supported, but it - line 404: // TODO: other transformations in spec or practice? libgo/go/crypto/tls/cipher_suites.go (2 lines): - line 148: var cipherSuites = []*cipherSuite{ // TODO: replace with a map, since the order doesn't matter. - line 200: var cipherSuitesTLS13 = []*cipherSuiteTLS13{ // TODO: replace with a map. libgo/go/golang.org/x/tools/go/analysis/passes/framepointer/framepointer.go (2 lines): - line 28: asmWriteBP = re(`,\s*BP$`) // TODO: can have false positive, e.g. for TESTQ BP,BP. Seems unlikely. - line 34: if build.Default.GOARCH != "amd64" { // TODO: arm64 also? libgo/go/math/big/arith_decl_pure.go (2 lines): - line 23: // TODO: remove indirect function call when golang.org/issue/30548 is fixed - line 32: // TODO: remove indirect function call when golang.org/issue/30548 is fixed libgo/go/bytes/bytes.go (2 lines): - line 722: // TODO: update when package unicode captures more of the properties. - line 1164: // TODO: if large prefixes of sep are matching libgo/go/golang.org/x/text/unicode/norm/forminfo.go (2 lines): - line 108: // TODO: loosen these conditions. - line 148: // TODO: create the decomposition for Hangul? libgo/go/regexp/syntax/compile.go (2 lines): - line 162: // TODO: impose length limit - line 195: // TODO: elide nop libgo/go/debug/pe/file.go (2 lines): - line 400: // TODO add dynimport ordinal support. - line 412: // TODO add dynimport ordinal support. libgo/go/net/http/server.go (2 lines): - line 1404: // TODO: return an error if WriteHeader gets a return parameter - line 3157: // TODO: Issue 26303: close HTTP/2 conns as soon as they become idle. libgo/go/net/http/cookiejar/jar.go (2 lines): - line 38: // TODO: specify which of the caller and callee is responsible for IP - line 462: // TODO: This might be relaxed as in common browsers. libgo/go/golang.org/x/text/unicode/norm/normalize.go (2 lines): - line 443: // TODO: Using streamSafe to determine the boundary isn't the same as - line 510: // TODO: this could be removed if we don't support merging. libgo/go/net/http/transport.go (2 lines): - line 410: // TODO: also add this to x/net/http2.Configure Transport, behind - line 2512: var errRequestCanceledConn = errors.New("net/http: request canceled while waiting for connection") // TODO: unify? libgo/go/golang.org/x/tools/go/analysis/passes/printf/printf.go (2 lines): - line 231: // TODO: Relax these checks; issue 26555. - line 849: // TODO: Disable complaint about '0' for Go 1.10. To be fixed properly in 1.11. libgo/go/encoding/gob/debug.go (2 lines): - line 207: // TODO: handle errors better. - line 496: deb.r.Read(b) // TODO: CHECK THESE READS!! libgo/go/crypto/x509/parser.go (1 line): - line 357: // TODO: map out.MaxPathLen to 0 if it has the -1 default value? (Issue 19285) libgo/go/regexp/regexp.go (1 line): - line 790: // TODO: use step() go/export.cc (1 line): - line 678: // FIXME: It might be clever to add something about the processor libgo/go/golang.org/x/tools/go/ast/astutil/enclosing.go (1 line): - line 301: // TODO test: Doc libgo/go/net/http/sniff.go (1 line): - line 193: // TODO: do whatever the spec ends up doing. libgo/go/context/context.go (1 line): - line 212: // TODO returns a non-nil, empty Context. Code should use context.TODO when libgo/go/runtime/map_fast64.go (1 line): - line 387: // TODO: reuse overflow buckets instead of using new ones, if there libgo/go/cmd/cgo/out.go (1 line): - line 1405: // TODO: Handle types defined within a function. libgo/go/go/types/expr.go (1 line): - line 96: // See also TODO in go/constant/value.go. libgo/go/strings/strings.go (1 line): - line 682: // TODO: update when package unicode captures more of the properties. libgo/runtime/go-unwind.c (1 line): - line 789: // TODO: print gp, pc, sp libgo/runtime/go-assert.c (1 line): - line 16: /* FIXME: Eventually we should dump a stack trace here. */ libgo/go/compress/bzip2/bzip2.go (1 line): - line 238: bz2.wantBlockCRC = uint32(br.ReadBits64(32)) // skip checksum. TODO: check it if we can figure out what it is. libgo/go/cmd/internal/objabi/flag.go (1 line): - line 49: // TODO: handle relative paths of recursive expansions in different directories? libgo/go/net/fd_windows.go (1 line): - line 176: // TODO: Implement this libgo/go/internal/poll/errno_windows.go (1 line): - line 28: // TODO: add more here, after collecting data on the common libgo/go/cmd/go/internal/modload/load.go (1 line): - line 1919: // TODO: Is this check needed? libgo/go/testing/testing.go (1 line): - line 1799: // TODO: Worth doing better? Probably not, because we're here only libgo/go/net/sock_windows.go (1 line): - line 14: // TODO: Implement this libgo/go/cmd/go/internal/modload/edit.go (1 line): - line 294: if go117LazyTODO { libgo/go/cmd/go/internal/modcmd/vendor.go (1 line): - line 239: // TODO above. libgo/go/cmd/internal/sys/arch.go (1 line): - line 90: Alignment: 4, // TODO: just for arm5? libgo/go/net/http/transfer.go (1 line): - line 319: // TODO: could do better allocation-wise here, but trailers are rare, libgo/go/net/lookup_windows.go (1 line): - line 86: // TODO(bradfitz,brainman): use ctx more. See TODO below. libgo/go/cmd/go/internal/list/list.go (1 line): - line 598: // TODO: Use pkgsFilter? libgo/go/golang.org/x/sys/cpu/cpu_gccgo_x86.c (1 line): - line 24: // TODO: Replace with a better alternative: libgo/go/strconv/quote.go (1 line): - line 525: // TODO: IsPrint is a local implementation of unicode.IsPrint, verified by the tests libgo/go/runtime/map_fast32.go (1 line): - line 385: // TODO: reuse overflow buckets instead of using new ones, if there libgo/go/net/tcpsock_posix.go (1 line): - line 118: // TODO: try to understand what's really going on. libgo/go/unicode/casetables.go (1 line): - line 5: // TODO: This file contains the special casing rules for Turkish and Azeri only. libgo/runtime/arch.h (1 line): - line 5: // FIXME: Ideally CacheLineSize would be dependent on the host architecture. libgo/go/golang.org/x/text/unicode/norm/iter.go (1 line): - line 249: // TODO: this condition should not be possible, but we leave it libgo/go/runtime/panic.go (1 line): - line 58: // TODO: is this redundant? How could we be in malloc libgo/go/golang.org/x/xerrors/wrap.go (1 line): - line 63: // TODO: consider supporing target.Is(err). This would allow libgo/go/crypto/x509/root_windows.go (1 line): - line 281: // TODO: restore this functionality on Windows. We tried to do libgo/go/runtime/slice.go (1 line): - line 325: // TODO: is this still worth it with new memmove impl? libgo/go/crypto/elliptic/p521.go (1 line): - line 37: b := bigIntToFiatP521(curve.B) // TODO: precompute this value. libgo/go/index/suffixarray/sais.go (1 line): - line 781: saX = sa[x] // TODO bounds check libgo/go/text/template/parse/parse.go (1 line): - line 496: // TODO: Should we allow else-if in with and range? libgo/go/encoding/xml/read.go (1 line): - line 382: // TODO: For now, simply ignore the field. In the near libgo/go/image/gif/writer.go (1 line): - line 451: // TODO: Pick a better sub-sample of the Plan 9 palette. libgo/go/errors/wrap.go (1 line): - line 52: // TODO: consider supporting target.Is(err). This would allow libgo/go/golang.org/x/net/http/httpguts/httplex.go (1 line): - line 122: // TODO: consider using strings.Trim(x, " \t") instead, libgo/go/go/build/build.go (1 line): - line 194: // TODO: use os.ReadDir libgo/go/strconv/ftoa.go (1 line): - line 15: // TODO: move elsewhere? libgo/go/runtime/mbitmap.go (1 line): - line 1342: // TODO: We could probably make this faster by libgo/go/debug/dwarf/type.go (1 line): - line 562: // TODO: Should have original compilation libgo/go/golang.org/x/net/http/httpproxy/proxy.go (1 line): - line 298: // TODO: Consider removing this check after verifying performance is okay. libgo/go/runtime/netpoll_aix.go (1 line): - line 148: // TODO: call poll with timeout == 0 libgo/go/debug/elf/file.go (1 line): - line 31: // TODO: error reporting detail libgo/go/net/http/pprof/pprof.go (1 line): - line 290: } else { // TODO: what's a good status code for canceled requests? 400? libgo/go/crypto/rsa/pss.go (1 line): - line 200: if !bytes.Equal(h0, h) { // TODO: constant time? libgo/go/internal/syscall/windows/zsyscall_windows.go (1 line): - line 33: // TODO: add more here, after collecting data on the common libgo/go/internal/poll/writev.go (1 line): - line 29: // TODO: read from sysconf(_SC_IOV_MAX)? The Linux default is libgo/go/golang.org/x/tools/go/analysis/passes/shift/dead.go (1 line): - line 72: // TODO: This handles integer comparisons only. libgo/go/internal/xcoff/ar.go (1 line): - line 218: // FIXME: This doesn't work if an archive has two members with the same libgo/go/cmd/go/internal/modfetch/coderepo.go (1 line): - line 349: // TODO: It would be nice to return an error like "not a module". libgo/go/runtime/type.go (1 line): - line 210: // TODO: use a sorted array instead? libgo/go/runtime/runtime1.go (1 line): - line 107: // TODO: These should be locals in testAtomic64, but we don't 8-byte libgo/go/golang.org/x/text/unicode/norm/transform.go (1 line): - line 56: // TODO: get rid of reorderBuffer. See CL 23460044. libgo/go/golang.org/x/text/unicode/norm/composition.go (1 line): - line 239: // TODO: inline. libgo/go/runtime/mgc.go (1 line): - line 1385: // TODO: We could clear out buffers just before mark if this libgo/go/internal/bytealg/index_s390x.go (1 line): - line 18: // TODO: it would really be nicer for internal/cpu to figure out this go/types.h (1 line): - line 2418: // Set the tag. FIXME: This is never freed. libgo/go/golang.org/x/tools/internal/analysisinternal/analysis.go (1 line): - line 407: // TODO: Improve scoring algorithm. go/embed.cc (1 line): - line 927: // FIXME: The embed.file type has a hash field, which is libgo/go/go/types/conversions.go (1 line): - line 62: // (See also the TODO below.) libgo/go/cmd/go/internal/load/pkg.go (1 line): - line 1830: // TODO: The .swig and .swigcxx files can use go/gogo.h (1 line): - line 3931: // Whether we have seen any errors. FIXME: Replace with a backend libgo/go/go/types/typexpr.go (1 line): - line 941: // TODO: correct error code. go/wb.cc (1 line): - line 1054: // TODO: split assignments for small struct/array? libgo/go/syscall/libcall_posix_utimesnano.go (1 line): - line 14: // TODO: The BSDs can do utimensat with SYS_UTIMENSAT but it libgo/go/go/parser/resolver.go (1 line): - line 346: // TODO: remove this once we've matched the parser resolution exactly. libgo/go/net/http/internal/chunked.go (1 line): - line 166: // TODO: care about exact syntax of chunk extensions? We're libgo/go/reflect/type.go (1 line): - line 2189: typ.tflag = 0 // TODO: set tflagRegularMemory libgo/go/internal/bytealg/bytealg.go (1 line): - line 28: // FIXME: the logic of HashStrBytes, HashStrRevBytes, IndexRabinKarpBytes and HashStr, HashStrRev, libgo/go/net/sock_stub.go (1 line): - line 13: // TODO: Implement this libgo/go/cmd/go/internal/cfg/cfg.go (1 line): - line 81: // need to change. TODO: This should be cleaned up. libgo/go/go/types/call.go (1 line): - line 563: // 12/20/2019: Is this TODO still correct? libgo/go/go/token/token.go (1 line): - line 324: // TODO: opt: use a perfect hash function instead of a global map. libgo/go/strings/builder.go (1 line): - line 38: // TODO: once issue 7921 is fixed, this should be reverted to libgo/go/os/dir_gccgo.go (1 line): - line 14: // FIXME: pathconf returns long, not int. libgo/go/runtime/map_faststr.go (1 line): - line 412: // TODO: reuse overflow buckets instead of using new ones, if there libgo/go/net/interface_windows.go (1 line): - line 68: // TODO: use MIB_IF_ROW2.AccessType now that we no longer support libgo/go/runtime/mbarrier.go (1 line): - line 158: // TODO: Perfect for go:nosplitrec since we can't have a safe point libgo/go/go/doc/reader.go (1 line): - line 456: // showing the TODO body. libgo/go/archive/tar/stat_unix.go (1 line): - line 103: // TODO: Implement solaris (see https://golang.org/issue/8106) libgo/go/cmd/go/internal/work/gc.go (1 line): - line 234: // TODO: Test and delete these conditions. libgo/go/runtime/defs_windows_arm64.go (1 line): - line 82: // TODO: not implemented on ARM libgo/go/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go (1 line): - line 124: continue // TODO: report error? proceed? libgo/go/golang.org/x/net/idna/trie.go (1 line): - line 19: // TODO: support and handle two-byte inline masks libgo/go/html/template/html.go (1 line): - line 243: // TODO: Split attr and element name part filters so we can recognize known attributes. libgo/go/internal/syscall/windows/registry/zsyscall_windows.go (1 line): - line 33: // TODO: add more here, after collecting data on the common libgo/go/net/http/httputil/dump.go (1 line): - line 158: // TODO: if the req.ContentLength is large, we allocate memory libgo/go/testing/match.go (1 line): - line 24: // TODO: fix test_main to avoid race and improve caching, also allowing to libgo/go/go/ast/filter.go (1 line): - line 464: // TODO: consider handling cases where: libgo/go/html/template/escape.go (1 line): - line 389: Args: []parse.Node{parse.NewIdentifier(identifier).SetTree(nil).SetPos(pos)}, // TODO: SetTree. libgo/go/encoding/xml/xml.go (1 line): - line 2041: // TODO: this parsing is somewhat lame and not exact. libgo/go/fmt/scan.go (1 line): - line 744: // TODO: accept N and Ni independently? libgo/go/golang.org/x/tools/cover/profile.go (1 line): - line 228: line, col := 1, 2 // TODO: Why is this 2? libgo/go/golang.org/x/crypto/chacha20/xor.go (1 line): - line 23: // TODO: delete once the compiler does a reliably