[go-nuts] heapdump viewer

2020-12-09 Thread xiangdong...@gmail.com
Hi all, I'm looking for a viewer for the heapdump file generated by WriteHeapDump, can anyone shed a light here? Thanks. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: [go-nuts] Linter for checking 'MVS' of go module

2020-12-08 Thread xiangdong...@gmail.com
Thanks a lot, Shulhan. On Wednesday, December 9, 2020 at 1:03:01 PM UTC+8 Shulhan wrote: > > > On Wed, 9 Dec 2020, 11:42 xiangd...@gmail.com, > wrote: > >> Hi all, >> >> I'm wondering if any linter, or is it practical to make one, checks >> whether a go module's code change conforms the

[go-nuts] Linter for checking 'MVS' of go module

2020-12-08 Thread xiangdong...@gmail.com
Hi all, I'm wondering if any linter, or is it practical to make one, checks whether a go module's code change conforms the minimal version selection rules, say linter warns a v2 is needed if incompatible changes to APIs are introduced in the current change under linting? -- You received this

Re: [go-nuts] Any way to exclude testcase(s) from 'go test'?

2020-09-01 Thread xiangdong...@gmail.com
The issue happens at building time of 'go test' for misc/cgo/test, I was expecting 'go test' is powerful enough to skip building a specific case given a negation pattern and without involving tags, but just realized it's a wrong way, 'go test' always builds all dependency stuff. Now the

[go-nuts] Any way to exclude testcase(s) from 'go test'?

2020-08-31 Thread xiangdong...@gmail.com
Hi, I'm looking for a way to exclude one specific testcase (perhaps multiple in the future) from 'go test' and wondering how to define a 'negation' pattern? For example, how to run all testcases of misc/cgo/test except for a specific one, say Test7978? Thanks a lot. -- You received this

Re: [go-nuts] multiple-line 'expression' of if-statement not supported?

2020-06-11 Thread xiangdong...@gmail.com
Thanks a lot, Ian, it works now. On Thursday, June 11, 2020 at 2:17:23 PM UTC+8, Ian Lance Taylor wrote: > > On Wed, Jun 10, 2020 at 11:05 PM xiang...@gmail.com > > wrote: > > > > Wondering if the 'expression' part of an if-statement should be in one > line only, given the following case,

[go-nuts] multiple-line 'expression' of if-statement not supported?

2020-06-11 Thread xiangdong...@gmail.com
Hi all, Wondering if the 'expression' part of an if-statement should be in one line only, given the following case, 'go tool compile' will report a syntax error Enter code here... package p func cf1() int { return 0 } func cf2() int { return 10 } func f() { *if cf2()

[go-nuts] random test failure of TestScript/mod_indirect in 'cmd/go'

2020-04-02 Thread xiangdong...@gmail.com
I got the following test error from time to time, even with a freshly checkout repo., when running './all.bash', but 'go test -run=TestScript/mod_indirect cmd/go' works fine, can anyone please help here? Thanks.

Re: [go-nuts] How to clean cache for 'go tool dist test'

2020-03-22 Thread xiangdong...@gmail.com
Update: I cannot reproduce the time-out issue any longer. Thanks all. Still curious to know if there is any way to clean the cache, there used to be GOCACHE=off, but seems that it's not supported now. On Friday, March 20, 2020 at 2:01:48 PM UTC+8, xiang...@gmail.com wrote: > > I always got a

Re: [go-nuts] How to clean cache for 'go tool dist test'

2020-03-20 Thread xiangdong...@gmail.com
I always got a timeout when running all.bash (synced to the latest commit cbd421f75b0770c3534d1b641e7770bf1878004f), it's not reproducible with 'go test -run=. crypto/tls', no GOARCH and GOOS were set previously. Thanks. *02:58:18* panic: test timed out after 9m0s*02:58:18* *02:58:18*

[go-nuts] Re: Any way to print a 'struct g' within delve/gdb

2019-11-11 Thread xiangdong...@gmail.com
Hi Derek, Say I have the pointer value of a specific G struct, how to convert it to 'struct g' (or any other form) in delve so that I can check the details of its fields? For example (simply utilized runtime.m0.curg to get a pointer value here) (dlv) p (**runtime.g)(0x56a140) Just tried a

Re: [go-nuts] [gollvm] compiling error of libgo/runtime/aeshash.c on ARM

2019-07-16 Thread xiangdong...@gmail.com
Hi Than, Thank you for the prompt reply, my apologies for not being descriptive of the context. Yes, it's a gollvm-compiled program on arm and we just started investigating the ABI part, I'm wondering if any documents about go's internals are available to help understand it and related areas

Re: [go-nuts] [gollvm] compiling error of libgo/runtime/aeshash.c on ARM

2019-07-16 Thread xiangdong...@gmail.com
Hi Ian, Could you please share some code pointers or documents about how 'go' functions calling 'c' functions is implemented, I'm looking into the following function at gofrontend/libgo/go/bytes/bytes.go:102, where c-function IndexByte in bytealg.c/bytealg.c:90 is called but with wrong

Re: [go-nuts] [gollvm] compiling error of libgo/runtime/aeshash.c on ARM

2019-07-15 Thread xiangdong...@gmail.com
Thanks a lot, Ian, I can build it with clang now with a few minor changes. On Tuesday, July 16, 2019 at 5:40:24 AM UTC+8, Ian Lance Taylor wrote: > > On Mon, Jul 15, 2019 at 7:39 AM Xiangdong Ji > wrote: > > > > I am trying to build gollvm on ARM with a few experimental changes, > looks