[go-nuts] runtime swiss maps

2024-08-17 Thread Leah Stapleton
Hi, The code in the map_swiss.go and map_noswiss.go is virtually the same. Have the swiss tables been implemented yet? https://github.com/golang/go/blob/master/src/runtime/map_swiss.go https://github.com/golang/go/blob/master/src/runtime/map_noswiss.go There is nothing in the map_swiss.go fil

[go-nuts] GOEXPERIMENT source code build

2024-08-16 Thread Leah Stapleton
Hi, I have a question about building go source code to run the tests go swiss maps experiments. first off, There are tests with the same name in map_swiss_test.go and map_noswiss_test.go, and when I *go test -run TestMapIterOrder, *it is by default running the test in map_noswiss_test.go, so

[go-nuts] cloning source code with pull request

2024-08-06 Thread Leah Stapleton
Hello, If I wanted to clone the google source code with a pending pull request (such as https://go-review.googlesource.com/c/go/+/596035 ) how would I do it? My goal is to test the pull request. apologies if I shouldn't have asked on this channel -- You received this message because you a

[go-nuts] using runtime /debuglog.go

2024-08-06 Thread Leah Stapleton
I'm trying to debug a problem in the go runtime and wished to use the debuglog.go features found in https://github.com/golang/go/blob/master/src/runtime/debuglog.go However, when I follow the example here https://github.com/golang/go/issues/59600#issuecomment-1515040287 d := dlog() if d != n

[go-nuts] mutex profile headers

2024-07-29 Thread Leah Stapleton
Hi, can anyone explain what the headers (in bold) refer to in mutex profiles? Is it documented somewhere? Thank you *871400731000 26738165 @ 0x81c8d94 0x81c8d93 0x81c88d7 0x8444386 0x82353a1* # 0x81c8d93 runtime.unlock+0x4b3 /usr/local/go/src/runtime/lock_sema.go:103 # 0x81c8d92 runtime.chans

[go-nuts] question about HACKING.md

2024-07-18 Thread Leah Stapleton
In the document HACKING.md (https://github.com/golang/go/blob/master/src/runtime/HACKING.md), it states that we can determine if we're running on the user or system stack by running `getg() == getg().m.curg`. However if the output of that equality check is true, does that mean we're on user o

[go-nuts] submitting to Go, needing to rebase

2024-06-14 Thread Leah Stapleton
Consider the following scenario. I make a commit to the Golang source code repo (at https://go.googlesource.com/go) A reviewer gives me feedback and I need to amend my changes. While a change is in review the HEAD of the target branch can change, in which case a rebase is necessary as described

[go-nuts] question about TestPageAllocAlloc, AllFree1

2024-05-07 Thread Leah Stapleton
I have a question about scavenging arising one of the runtime tests in runtime/mpagealloc.go. The test in question is the " AllFree1" test case in TestPageAllocAlloc. According to my understanding, in the runtime, there is a distinction between reclaiming memory and scavenging memory. Reclaimi

[go-nuts] Re: array index not starting at 0

2024-01-30 Thread Leah Stapleton
Is it possible that some PauseNs numbers are so small that they're rounded down to 0? On Monday, January 29, 2024 at 9:45:32 AM UTC-5 Leah Stapleton wrote: > go version go1.21.5 windows/amd64 > > There have been 9 garbage collections according to NumGC and also the > PauseE

[go-nuts] array index not starting at 0

2024-01-29 Thread Leah Stapleton
go version go1.21.5 windows/amd64 There have been 9 garbage collections according to NumGC and also the PauseEnd array; However, the PauseNs array only shows two pause times, and they are incorrectly positioned in the array (the first time is logged at PauseNs[4] rather than PauseNs[0]) Can an