fffc921d42
This avoids that the thread sweeping the base object can get stale locals, in the case that the finalizer thread unlinks the extraobject at the same time. This is done by moving the responsibility of unlinking the extraobject to the sweeping of the base object. Co-authored-by: Troels Bjerre Lund <troels@google.com> Merge-request: KT-MR-10518 Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>