Skip to content

Commit 9a657c5

Browse files
wizeguyygameofpointers
authored andcommitted
Use shasha-s/go-deadlock for deadlock detection
1 parent ad6b324 commit 9a657c5

File tree

104 files changed

+108
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+108
-102
lines changed

build/update-license.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import (
5050
"sort"
5151
"strconv"
5252
"strings"
53-
"sync"
53+
sync "github.com/sasha-s/go-deadlock"
5454
"text/template"
5555
"time"
5656
)

cmd/go-quai/test_cmd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"os/exec"
2727
"regexp"
2828
"strings"
29-
"sync"
29+
sync "github.com/sasha-s/go-deadlock"
3030
"sync/atomic"
3131
"syscall"
3232
"testing"

common/prque/lazyqueue_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package prque
1818

1919
import (
2020
"math/rand"
21-
"sync"
21+
sync "github.com/sasha-s/go-deadlock"
2222
"testing"
2323
"time"
2424

common/timedcache/timedcache.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package timedcache
22

33
import (
4-
"sync"
4+
sync "github.com/sasha-s/go-deadlock"
55
"time"
66

77
lru "github.com/hashicorp/golang-lru"

consensus/blake3pow/blake3pow.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package blake3pow
33
import (
44
"math/big"
55
"math/rand"
6-
"sync"
6+
sync "github.com/sasha-s/go-deadlock"
77
"time"
88

99
"github.com/dominant-strategies/go-quai/common"

consensus/blake3pow/blake3pow_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"math/big"
66
"math/rand"
77
"os"
8-
"sync"
8+
sync "github.com/sasha-s/go-deadlock"
99
"testing"
1010
"time"
1111

consensus/blake3pow/sealer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"math/rand"
1212
"net/http"
1313
"runtime"
14-
"sync"
14+
sync "github.com/sasha-s/go-deadlock"
1515
"time"
1616

1717
"github.com/dominant-strategies/go-quai/common"

core/bloombits/matcher.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"errors"
2323
"math"
2424
"sort"
25-
"sync"
25+
sync "github.com/sasha-s/go-deadlock"
2626
"sync/atomic"
2727
"time"
2828

core/bloombits/scheduler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package bloombits
1818

1919
import (
20-
"sync"
20+
sync "github.com/sasha-s/go-deadlock"
2121
)
2222

2323
// request represents a bloom retrieval task to prioritize and pull from the local

core/bloombits/scheduler_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"bytes"
2121
"math/big"
2222
"math/rand"
23-
"sync"
23+
sync "github.com/sasha-s/go-deadlock"
2424
"sync/atomic"
2525
"testing"
2626
"time"

core/bodydb.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package core
22

33
import (
4-
"sync"
4+
sync "github.com/sasha-s/go-deadlock"
55
"time"
66

77
"github.com/dominant-strategies/go-quai/common"

core/chain_indexer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"context"
2121
"encoding/binary"
2222
"fmt"
23-
"sync"
23+
sync "github.com/sasha-s/go-deadlock"
2424
"sync/atomic"
2525
"time"
2626

core/headerchain.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"io"
77
"math/big"
8-
"sync"
8+
sync "github.com/sasha-s/go-deadlock"
99
"sync/atomic"
1010
"time"
1111

core/rawdb/chain_iterator_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"math/big"
2121
"reflect"
2222
"sort"
23-
"sync"
23+
sync "github.com/sasha-s/go-deadlock"
2424
"testing"
2525

2626
"github.com/dominant-strategies/go-quai/common"

core/rawdb/freezer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"math"
2323
"os"
2424
"path/filepath"
25-
"sync"
25+
sync "github.com/sasha-s/go-deadlock"
2626
"sync/atomic"
2727
"time"
2828

core/rawdb/freezer_table.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"io"
2424
"os"
2525
"path/filepath"
26-
"sync"
26+
sync "github.com/sasha-s/go-deadlock"
2727
"sync/atomic"
2828

2929
"github.com/dominant-strategies/go-quai/common"

core/rawdb/freezer_table_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"math/rand"
2525
"os"
2626
"path/filepath"
27-
"sync"
27+
sync "github.com/sasha-s/go-deadlock"
2828
"testing"
2929
"time"
3030

core/slice.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"errors"
77
"fmt"
88
"math/big"
9-
"sync"
109
"time"
1110

1211
"github.com/dominant-strategies/go-quai/common"
@@ -20,6 +19,7 @@ import (
2019
"github.com/dominant-strategies/go-quai/params"
2120
"github.com/dominant-strategies/go-quai/quaiclient"
2221
"github.com/dominant-strategies/go-quai/trie"
22+
sync "github.com/sasha-s/go-deadlock"
2323
)
2424

2525
const (

core/state/snapshot/conversion.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"fmt"
2424
"math"
2525
"runtime"
26-
"sync"
26+
sync "github.com/sasha-s/go-deadlock"
2727
"time"
2828

2929
"github.com/dominant-strategies/go-quai/common"

core/state/snapshot/difflayer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"math"
2323
"math/rand"
2424
"sort"
25-
"sync"
25+
sync "github.com/sasha-s/go-deadlock"
2626
"sync/atomic"
2727
"time"
2828

core/state/snapshot/disklayer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package snapshot
1818

1919
import (
2020
"bytes"
21-
"sync"
21+
sync "github.com/sasha-s/go-deadlock"
2222

2323
"github.com/VictoriaMetrics/fastcache"
2424
"github.com/dominant-strategies/go-quai/common"

core/state/snapshot/snapshot.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"bytes"
2222
"errors"
2323
"fmt"
24-
"sync"
24+
sync "github.com/sasha-s/go-deadlock"
2525
"sync/atomic"
2626

2727
"github.com/dominant-strategies/go-quai/common"

core/state/trie_prefetcher.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package state
1818

1919
import (
20-
"sync"
20+
sync "github.com/sasha-s/go-deadlock"
2121

2222
"github.com/dominant-strategies/go-quai/common"
2323
"github.com/dominant-strategies/go-quai/log"

core/state_processor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"errors"
2121
"fmt"
2222
"math/big"
23-
"sync"
23+
sync "github.com/sasha-s/go-deadlock"
2424
"time"
2525

2626
"github.com/dominant-strategies/go-quai/common"

core/tx_noncer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package core
1818

1919
import (
20-
"sync"
20+
sync "github.com/sasha-s/go-deadlock"
2121

2222
"github.com/dominant-strategies/go-quai/common"
2323
"github.com/dominant-strategies/go-quai/core/state"

core/tx_pool.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"math"
2323
"math/big"
2424
"sort"
25-
"sync"
25+
sync "github.com/sasha-s/go-deadlock"
2626
"time"
2727

2828
"github.com/dominant-strategies/go-quai/common"

core/vm/evm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package vm
1919
import (
2020
"fmt"
2121
"math/big"
22-
"sync"
22+
sync "github.com/sasha-s/go-deadlock"
2323
"sync/atomic"
2424
"time"
2525

core/worker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"errors"
55
"fmt"
66
"math/big"
7-
"sync"
87
"sync/atomic"
98
"time"
109

@@ -22,6 +21,7 @@ import (
2221
"github.com/dominant-strategies/go-quai/params"
2322
"github.com/dominant-strategies/go-quai/trie"
2423
lru "github.com/hashicorp/golang-lru"
24+
sync "github.com/sasha-s/go-deadlock"
2525
)
2626

2727
const (

eth/backend.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ package eth
2020
import (
2121
"fmt"
2222
"math/big"
23-
"sync"
23+
sync "github.com/sasha-s/go-deadlock"
2424
"sync/atomic"
2525
"time"
2626

eth/downloader/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package downloader
1818

1919
import (
2020
"context"
21-
"sync"
21+
sync "github.com/sasha-s/go-deadlock"
2222

2323
"github.com/dominant-strategies/go-quai"
2424
"github.com/dominant-strategies/go-quai/event"

eth/downloader/downloader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"errors"
2222
"fmt"
2323
"math/big"
24-
"sync"
24+
sync "github.com/sasha-s/go-deadlock"
2525
"sync/atomic"
2626
"time"
2727

eth/downloader/downloader_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"fmt"
2222
"math/big"
2323
"strings"
24-
"sync"
24+
sync "github.com/sasha-s/go-deadlock"
2525
"sync/atomic"
2626
"testing"
2727
"time"

eth/downloader/peer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"errors"
2424
"math/big"
2525
"sort"
26-
"sync"
26+
sync "github.com/sasha-s/go-deadlock"
2727
"sync/atomic"
2828
"time"
2929

eth/downloader/queue_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"fmt"
2121
"math/big"
2222
"math/rand"
23-
"sync"
23+
sync "github.com/sasha-s/go-deadlock"
2424
"testing"
2525
"time"
2626

eth/downloader/resultstore.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package downloader
1818

1919
import (
2020
"fmt"
21-
"sync"
21+
sync "github.com/sasha-s/go-deadlock"
2222
"sync/atomic"
2323

2424
"github.com/dominant-strategies/go-quai/common"

eth/downloader/testchain_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package downloader
1919
import (
2020
"fmt"
2121
"math/big"
22-
"sync"
22+
sync "github.com/sasha-s/go-deadlock"
2323

2424
"github.com/dominant-strategies/go-quai/common"
2525
"github.com/dominant-strategies/go-quai/consensus/blake3pow"

eth/fetcher/block_fetcher_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package fetcher
1919
import (
2020
"errors"
2121
"math/big"
22-
"sync"
22+
sync "github.com/sasha-s/go-deadlock"
2323
"sync/atomic"
2424
"testing"
2525
"time"

eth/filters/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"errors"
2323
"fmt"
2424
"math/big"
25-
"sync"
25+
sync "github.com/sasha-s/go-deadlock"
2626
"time"
2727

2828
ethereum "github.com/dominant-strategies/go-quai"

eth/filters/filter_system.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package filters
2121
import (
2222
"context"
2323
"fmt"
24-
"sync"
24+
sync "github.com/sasha-s/go-deadlock"
2525
"time"
2626

2727
ethereum "github.com/dominant-strategies/go-quai"

eth/gasprice/gasprice.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"errors"
2222
"math/big"
2323
"sort"
24-
"sync"
24+
sync "github.com/sasha-s/go-deadlock"
2525

2626
"github.com/dominant-strategies/go-quai/common"
2727
"github.com/dominant-strategies/go-quai/core/types"

eth/handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"errors"
2121
"math"
2222
"math/rand"
23-
"sync"
23+
sync "github.com/sasha-s/go-deadlock"
2424
"sync/atomic"
2525
"time"
2626

eth/handler_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package eth
1919
import (
2020
"math/big"
2121
"sort"
22-
"sync"
22+
sync "github.com/sasha-s/go-deadlock"
2323

2424
"github.com/dominant-strategies/go-quai/common"
2525
"github.com/dominant-strategies/go-quai/consensus/blake3pow"

0 commit comments

Comments
 (0)