The best thing to do would be to make a self contained example that
reproduces it and file an issue at https://github.com/golang/go/issues

On Sat, 8 Dec 2018, at 8:49 AM, Jan wrote:
> I still haven't solved the issue (I just keep that odd line _ = &hmm)
> in the middle of the code.> 
> But I quickly looked at the assembly generated, and there is some
> inlined code from time.go:790 (!?) oddly in the middle of the call to
> glog.V().> 
> The code (a wrapper around alpha-beta-prunning implementation) in more
> details is below. And if I remove the "elpasedTime" line, things
> behave as expected (and I can remove the `_ = &hmm` line:> 
> 
> *func *TimedAlphaBeta(board *Board, scorer ai.BatchScorer, maxDepth
> int, parallelize bool, randomness float32) (
>>    bestAction Action, bestBoard *Board, bestScore float32) {
> 
>    stats := abStats{}
> 
>    start := time.Now()
> 
>    bestAction, bestBoard, bestScore = AlphaBeta(board, scorer,
>    maxDepth, parallelize, randomness, &stats)
>>    elapsedTime := time.Since(start).Seconds() hmm := bool(glog.V(3))
>>    _ = &hmm
> 
>    *if *hmm {
> 
>       ... logging ...
>    }
> }
> 
> It may just be a coincidence, but I thought I would report. 
> 


> --
>  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+unsubscr...@googlegroups.com.>  For more 
> options, visit https://groups.google.com/d/optout.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to