]> Cypherpunks repositories - gostls13.git/commit
runtime: clarify finalizer semantics for tiny objects
authorChangkun Ou <hi@changkun.de>
Mon, 26 Jul 2021 12:23:26 +0000 (14:23 +0200)
committerMichael Knyszek <mknyszek@google.com>
Tue, 15 Nov 2022 17:33:54 +0000 (17:33 +0000)
commit80d487111ba8fe1d0ddcd04972046070e2e4bbe9
tree9f6165daf41a4cab37b5b48526a81032d21b447d
parent1fcd4e9099c33b4baa74713d5639e61158d10b49
runtime: clarify finalizer semantics for tiny objects

This change clarifies that a finalizer is not guaranteed to run,
not only for zero bytes objects but also tiny objects (< 16bytes).

Fixes #46827

Change-Id: I193e77f6f024c79110604f86bcb1a28b16cf98ec
Reviewed-on: https://go-review.googlesource.com/c/go/+/337391
Run-TryBot: Changkun Ou <mail@changkun.de>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Joedian Reid <joedian@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/mfinal.go