github.com/zuoyebang/bitalostable@v1.0.1-0.20240229032404-e3b99a834294/internal/invariants/finalizer_off.go (about) 1 // Copyright 2021 The LevelDB-Go and Pebble Authors. All rights reserved. Use 2 // of this source code is governed by a BSD-style license that can be found in 3 // the LICENSE file. 4 5 //go:build (!invariants && !tracing) || race 6 // +build !invariants,!tracing race 7 8 package invariants 9 10 // SetFinalizer is a wrapper around runtime.SetFinalizer that is a no-op under 11 // race builds or if neither the invariants or tracing build tags are 12 // specified. 13 func SetFinalizer(obj, finalizer interface{}) { 14 }