FuncForPC misses the test function because it is inlined. Using FuncForPC
on the results of Callers does not work correctly in the presence of
inlining. That is essentially why CallersFrames was introduced.
The function name is missing because you're using the wrong expression for
it. You shoul
HI team :
i am facing an issue on export a C static library from Go via GCCGO
compiler on IBM-AIX -PPC(unix) box.
my GO code(wrapper.go) as below :
package main
//#include
//#include
import "C"
import "fmt"
//export printHello
func printHello() {
fmt.Println("hello nuts!")
}
func m
My bad! I was unaware of the sync.Pool behaviour. I thought that you need
to have the *New* method which allocates the objects for you, but I was
wrong. I thought that *only* objects returned from the *Get()* func should
be *Put()* back into the pool.
Thanks,
Matija.
On Monday, February 18, 20
What exactly do you think is wrong with the code? putBufioReader() is called in
several locations to place the reader into the Pool for later retrieval by
newBufioReader() ???
> On Feb 18, 2019, at 8:30 AM, Matija Martinić
> wrote:
>
> Poking around the golang's net/http I came across this th
*What version of Go are you using (go version)?*
1.9.3~latest version
*What operating system and processor architecture are you using?*
x86-64
*What did you do?*
test runtime.Callers function in a panic process, test code as below:
package main
import (
"fmt"
"runtime"
)
func test() {
var
Poking around the golang's net/http I came across this thing.
var (
bufioReaderPool sync.Pool
bufioWriter2kPool sync.Pool
bufioWriter4kPool sync.Pool
)
...
func newBufioReader(r io.Reader) *bufio.Reader {
if v := bufioReaderPool.Get(); v != nil {
br := v.(*bufio.Reader)
br.Reset(r)
retu
There was a change to how go mod treats softlinks in repositories
which changed the hash generated for some packages (we found out the
issue via git.apache.org/thrift.git). If the repo contains softlinks
and you generated your go.mod file before Go 1.11.3 (Go 1.11.2 still
exhibited the bug) then th
Hi all,
I've been using go modules since 1.10. I am now on 1.11.5. Go mod verify is
now failing since I went to go 1.11. Negative is old, plus is new.
-github.com/docker/docker v0.7.3-0.20180827131323-0c5f8d2b9b23
h1:Zl/9mUfPbYbnv895OXx9WfxPjwqSZHohuZzVcjJ5QPQ=
+github.com/docker/docker v0.7.3-
Thanks all for replying. I will look into what solution would work best
and get back.
Zhipeng,
I cannot add a sleep inside the for loop because the loop is sending
network packets as fast as possible.
Best,
Hemant
On Monday, February 18, 2019 at 1:41:16 AM UTC-5, Zhipeng Wang wrote:
>
>