Skip to content

fix: unlock l.mu before OnPotentialDeadlock to support panic in callback #41

fix: unlock l.mu before OnPotentialDeadlock to support panic in callback

fix: unlock l.mu before OnPotentialDeadlock to support panic in callback #41

Workflow file for this run

name: Go
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- "1.17"
- "1.20"
- "1.22"
- "1.23"
- "1.24"
- "1.25"
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -bench=. -coverprofile=coverage.txt ./...
env:
GODEBUG: asynctimerchan=0
- name: Test with deadlock_disable tag
run: go test -v -tags=deadlock_disable ./...
- name: Test with goexperiment.synctest tag (Go 1.24+)
if: matrix.go == '1.24' || matrix.go == '1.25'
run: go test -v -tags=goexperiment.synctest ./...
env:
GODEBUG: asynctimerchan=0
- name: Test with deadlock_synctest tag (Go 1.25+)
if: matrix.go == '1.25'
run: go test -v -tags=deadlock_synctest ./...
env:
GODEBUG: asynctimerchan=0