Re: [go-nuts] heap space not released by the end of program ?

2021-07-12 Thread Robert Engels
RSS is the amount of memory mapped to physical memory. It doesn’t include memory swapped. Still, if GC was releasing pages back to the OS - unmapping the allocated and touched pages - the RSS should decrease. There was a previous thread on if and when GC will release pages back to the OS. This

Re: [go-nuts] heap space not released by the end of program ?

2021-07-12 Thread Kurtis Rader
I didn't look at the source for your program because you don't seem to understand what "resident set size" means in this context. The RSS of a process is unrelated to its virtual size. You appear to be equating RSS and virtual size. This might be an example of the XY Problem

Re: [go-nuts] doubts

2021-07-12 Thread Jim Idle
If you are just starting out, I would use Iris rather than gin-gonic. You can then borrow from the many examples for that framework: https://github.com/iris-contrib/examples On Sun, Jul 11, 2021 at 1:38 AM Sree lekshmi MG wrote: > hey all i am the beginner in golang ,and now i want to slove *

[go-nuts] heap space not released by the end of program ?

2021-07-12 Thread Chan Lewis
Hi, I wrote a test program, which tests when GC starts to return heap space to OS. Here's the code: https://paste.ubuntu.com/p/jxHqDnsM2T/ But I've waited for a long time and haven't seen the RSS memory reduced. I can't figured out why, Any help ? (go version 1.14.3) -- You received this messa

[go-nuts] Re: What is 4*PtrSize extra space on goroutine stack for?

2021-07-12 Thread 'Keith Randall' via golang-nuts
I'm not sure it is necessary. The intent is to make sure we don't access off the top of the stack. sys.MinFrameSize should really handle that, I think. My guess is that the 4*sys.PtrSize was from before we had the MinFrameSize concept defined. On Monday, July 12, 2021 at 12:32:09 AM UTC-7 peng.

[go-nuts] [security] Go 1.16.6 and Go 1.15.14 are released

2021-07-12 Thread Dmitri Shuralyov
Hello gophers, We have just released Go versions 1.16.6 and 1.15.14, minor point releases. These minor releases include a security fix according to the new security policy (#44918 ). crypto/tls clients can panic when provided a certificate of the wrong type for th

[go-nuts] Re: Issue: x/net/html Node and attributes constructor function

2021-07-12 Thread atd...@gmail.com
Like func NewNode(...) and func NewAttr(...) Also a SetAttr on Nodes On Monday, July 12, 2021 at 7:38:08 PM UTC+2 atd...@gmail.com wrote: > Just wondering if people would feel it worthy to have COnstructor > functions to create html.Nodes, attributes, and set attributes on > html.Nodes. > > I'

[go-nuts] Issue: x/net/html Node and attributes constructor function

2021-07-12 Thread atd...@gmail.com
Just wondering if people would feel it worthy to have COnstructor functions to create html.Nodes, attributes, and set attributes on html.Nodes. I'm writing some kind of metaframework targeting the web and mobile (think flutter for Go) and basically finished the web target via wasm. But I'd like

[go-nuts] Website: add features international books

2021-07-12 Thread Frederic Marand
Currently, although Go has a broad international audience, the 5 featured books are in English. Would a PR to suggest at least one book in some major languages be acceptable ? Like mandarin, french, spanish, german, portuguese, maybe ? -- You received this message because you are subscribed to

Re: [go-nuts] Understanding gollvm garbage collection

2021-07-12 Thread Kavindu Gimhan Zoysa
Hi Ian and Than, Thank you both. Does it use the data available on *__LLVM_STACKMAPS* section to create that specific stack map? Or does it follow a different way to generate stack map information? Thank you, Kavindu On Monday, 12 July 2021 at 18:25:22 UTC+5:30 th...@google.com wrote: > >A

Re: [go-nuts] Understanding gollvm garbage collection

2021-07-12 Thread 'Than McIntosh' via golang-nuts
>Also does gollvm create a new stack map? I think it does not use the stack map created by LLVM. gollvm does not use stack maps of the format used by LLVM, correct. Than On Fri, Jul 9, 2021 at 11:17 AM Kavindu Gimhan Zoysa wrote: > Also does gollvm create a new stack map? I think it does not

Re: [go-nuts] Re: How to implement this in golang?

2021-07-12 Thread LetGo
I posted the wrong code I tried also something simple like that: cmd := exec.Command(binPath, "-i") //bin/sh -i cmd.Stdin = conn stdout := new(bytes.Buffer) cmd.Stdout = io.Write(stdout) conn.Write(stdout.Bytes()) cmd.Stderr = conn cmd.Run() Still no output of the commands

[go-nuts] What is 4*PtrSize extra space on goroutine stack for?

2021-07-12 Thread peng.g...@gmail.com
In the code https://github.com/golang/go/blob/master/src/runtime/proc.go#L4317, there is a 4*PtrSize extra space. What is the purpose? -- 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

[go-nuts] Re: error help

2021-07-12 Thread Anderson Queiroz
Could you be more specific about what you're doing, which library you're using? For the error message looks like whatever you're trying to connect to is refusing the connection. Only with this error and stacktrace is really difficult to understand what is happening. On Monday, 12 July 2021 at 08