It looks this line https://github.com/golang/go/blob/master/src/runtime/stack.go#L1078 never gets executed.
--
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 email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/90b6fe58-c810-4be1-b5d6-01cea9c0cc2an%40googlegroups.com.
So I think what you're asking is, "under what scenario does the code in L1066-1069 get run?" - is that right?
On Wednesday, June 30, 2021 at 11:56:45 AM UTC-4 Brian Candler wrote:So I think what you're asking is, "under what scenario does the code in L1066-1069 get run?" - is that right?Almost true.Whether or not it should run, growing the stack from 2048 to 512M in 18+ steps looks not right.
On Wednesday, 30 June 2021 at 14:21:21 UTC+1 tapi...@gmail.com wrote:Sorry, I post the wrong anchor. It is line 1068: https://github.com/golang/go/blob/d19a53338fa6272b4fe9c39d66812a79e1464cd2/src/runtime/stack.go#L1068On Wednesday, June 30, 2021 at 5:08:30 AM UTC-4 Brian Candler wrote:On Wednesday, 30 June 2021 at 08:25:59 UTC+1 tapi...@gmail.com wrote:It looks this line https://github.com/golang/go/blob/master/src/runtime/stack.go#L1078 never gets executed.Can you quote the line you're referring to? Line numbers can shift up and down as commits are made to the master branch. Right now, L1078 is a blank line.
--
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 email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/5fab5a6e-5dd5-4df2-8b31-4a51aa825f92n%40googlegroups.com.
On Wednesday, June 30, 2021 at 11:56:45 AM UTC-4 Brian Candler wrote:So I think what you're asking is, "under what scenario does the code in L1066-1069 get run?" - is that right?Almost true.Whether or not it should run, growing the stack from 2048 to 512M in 18+ steps looks not right.Why? 2048 • 2^18 = 2^11 • 2^18 = 2^29 = 536870912.Seems like exactly the expected result.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/a06d022b-06c2-4379-b33b-56886ebaf1dbn%40googlegroups.com.
The quadratic stack growthseems decent to me.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/d15c19c1-6844-4454-91f5-e21add1bf1fan%40googlegroups.com.
On Jul 1, 2021, at 9:28 AM, tapi...@gmail.com <tapi...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/42aabf7f-7aa5-43f9-915b-f49f41f8856fn%40googlegroups.com.
It is not rare a function will use 10M+ stack.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9e869b98-f3e0-4bfd-8a24-56c9a8dea8a4n%40googlegroups.com.
--
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 email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/aa2b50ca-209a-4f78-b5e4-5a0399c07231n%40googlegroups.com.
If you are doing “anything” which such large objects - doesn’t that dwarf the time to increase the stack?