all: use a custom sync package

The sync package is strongly tied to the runtime, so it's easier to
implement a new one. Besides, it's pretty big so it's better to replace
it.
This commit is contained in:
Ayke van Laethem
2018-09-15 18:51:51 +02:00
parent 94b18e2d79
commit c237633d34
3 changed files with 68 additions and 12 deletions
-12
View File
@@ -1,13 +1 @@
package runtime
// This file contains support code for the sync package.
//go:linkname registerPoolCleanup sync.runtime_registerPoolCleanup
func registerPoolCleanup(cleanup func()) {
// Ignore.
}
//go:linkname notifyListCheck sync.runtime_notifyListCheck
func notifyListCheck(size uintptr) {
// Ignore.
}