diff options
Diffstat (limited to 'src/runtime/mgcmark.go')
| -rw-r--r-- | src/runtime/mgcmark.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/mgcmark.go b/src/runtime/mgcmark.go index d4d7c93ba9..c2602c0aa1 100644 --- a/src/runtime/mgcmark.go +++ b/src/runtime/mgcmark.go @@ -1273,6 +1273,8 @@ func scanobject(b uintptr, gcw *gcWork) { throw("scanobject n == 0") } if s.spanclass.noscan() { + // Correctness-wise this is ok, but it's inefficient + // if noscan objects reach here. throw("scanobject of a noscan object") } |
