diff --git a/src/runtime/debug.go b/src/runtime/debug.go index 8a69c6e240..3dab52353b 100644 --- a/src/runtime/debug.go +++ b/src/runtime/debug.go @@ -8,3 +8,13 @@ package runtime func NumCPU() int { return 1 } + +// Stub for NumCgoCall, does not return the real value +func NumCgoCall() int { + return 0 +} + +// Stub for NumGoroutine, does not return the real value +func NumGoroutine() int { + return 1 +}