[go-nuts] unnecessary zeroing in reflectdata.fillptrmask

2023-12-19 Thread Ge
Src: https://github.com/golang/go/blob/1d4b0b6236febe0646d8d7b0103da5d169f185cc/src/cmd/compile/internal/reflectdata/reflect.go#L1568-L1594 ``` func dgcptrmask(t *types.Type, write bool) *obj.LSym { ... ptrmask = make([]byte, n) fillptrmask(t, ptrmask) ... } func fillptrmask(t *t

Re: [go-nuts] Does anyone gets automatic response from 944677...@qq.com?

2022-02-12 Thread Ge
The owner of this mail account may not even use it now. Just block this email address. 在2022年2月11日星期五 UTC+8 22:02:11 写道: > Bad that this is not only my problem. Did anyone try to write to person > that set up this auto replay? > > piątek, 11 lutego 2022 o 14:56:10 UTC+1 ren...@ix.netcom.com nap

Re: [go-nuts] How GC trace stack objects

2021-11-04 Thread Ge
Thank you Ian for the great answer. 在2021年11月4日星期四 UTC+8 上午7:21:57 写道: > On Wed, Nov 3, 2021 at 8:56 AM Ge wrote: > > > > Hi, recently I was trying to figure out how GC marks stack objects and > found > > some places of the implementation detail over

[go-nuts] How GC trace stack objects

2021-11-03 Thread Ge
uld happen at any time, which means for different pc there maybe lot of possiblites of stack maps. Thanks Ge -- 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, sen

Re: [go-nuts] defer and Go memory model

2021-05-13 Thread Ge
Thanks Jan and Axel, I may need to figure out go memory model and hardware memory model. 在2021年5月13日星期四 UTC+8 上午2:15:43 写道: > On Wed, May 12, 2021 at 7:55 PM Ge wrote: > > > Do you mean in following case if anthoer goroutine is observing A and B, > > there is no possbility th

Re: [go-nuts] defer and Go memory model

2021-05-12 Thread Ge
Thank you Jan, sorry for my bad english. Do you mean in following case if anthoer goroutine is observing A and B, there is no possbility that A is 0 and B is 5? (assuming no other synchronization here) ``` var A, B int func try() { defer func() { B = 5 } A = 3 } Ge 在2021年5月12日星期三 UTC

[go-nuts] defer and Go memory model

2021-05-12 Thread Ge
calls, and I'm not sure if it will happen in this case(f() and o.done has no dependency with each other so it is possible?). If anyone knows I would appreciate for your clarification. Thanks for your time. Ge -- You received this message because you are subscribed to the

[go-nuts] Re: meaning of SSA operation

2021-03-24 Thread Ge
full change is likely only for amd64 in 1.17, then for other > architectures once we figure out > the exact recipe. It touches many parts of the compiler and runtime. > > On Wednesday, March 24, 2021 at 4:01:36 AM UTC-4 Ge wrote: > >> Thank you Keith for clarification. It

[go-nuts] Re: meaning of SSA operation

2021-03-24 Thread Ge
Thank you Keith for clarification. It's really of great help. Ge 在2021年3月24日星期三 UTC+8 上午7:45:13 写道: > On Tuesday, March 23, 2021 at 9:11:13 AM UTC-7 Ge wrote: > >> >> Hi, >> Recently I encountered a problem which seems to be related to SSA >> optimization &

[go-nuts] meaning of SSA operation

2021-03-23 Thread Ge
Hi, Recently I encountered a problem which seems to be related to SSA optimization and feels hard to figure out what some SSA operation means. Code: case1: func main() { var x int go func() { for { x++ //no matter "-N" compile flags is specified or not,

Re: [go-nuts] How does isAsyncSafePoint check preemptable?

2020-08-07 Thread Ge
Thanks. clear now. 在2020年8月7日星期五 UTC+8 上午1:00:51 写道: > On Thu, Aug 6, 2020 at 7:49 AM HailangGe wrote: > > > > Recently I was trying to understand how asynchronous preemption is > implemented in Go 1.14 and > > basically figured out the call chain. > > > > sysmon > > ↓ > > retake > > ↓ > > pree

Re: [go-nuts] front-end post a body, back-end use gin.Context BindJSON but fail

2018-11-21 Thread ge . sf . chn
thanks,you are right, i got it at that night. 在 2018年11月9日星期五 UTC+8下午10:14:14,Burak Serdar写道: > > On Fri, Nov 9, 2018 at 6:35 AM > wrote: > > > > front-end info > > //body struct > > type Bucket struct { > >Name string `json:"name"` > >KeyId string `json:"key_id"` > >