Skip to content

Commit

Permalink
fix: keep atomic counter aligned on 64 bits boundary
Browse files Browse the repository at this point in the history
Fixes #845.
  • Loading branch information
mvertes committed Sep 14, 2020
1 parent 151699e commit 42abedb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion interp/interp.go
Expand Up @@ -130,11 +130,15 @@ type Interpreter struct {
// architectures.
id uint64

// nindex is a node number incremented for each new node.
// It is used for debug (AST and CFG graphs). As it is atomically
// incremented, keep it aligned on 64 bits boundary.
nindex int64

name string // name of the input source file (or main)

opt // user settable options
cancelChan bool // enables cancellable chan operations
nindex int64 // next node index
fset *token.FileSet // fileset to locate node in source code
binPkg Exports // binary packages used in interpreter, indexed by path
rdir map[string]bool // for src import cycle detection
Expand Down

0 comments on commit 42abedb

Please sign in to comment.