[K/N] Any.isFrozen is now always false when freezing is disabled

This commit is contained in:
Pavel Kunyavskiy
2022-01-19 16:15:20 +03:00
committed by Space
parent 35ef8cc6da
commit 3798920183
20 changed files with 116 additions and 50 deletions
@@ -91,6 +91,7 @@ void ObjHeader::destroyMetaObject(ObjHeader* object) {
ALWAYS_INLINE bool isPermanentOrFrozen(const ObjHeader* obj) {
// TODO: Freeze TF_IMMUTABLE objects upon creation.
if (!compiler::freezingChecksEnabled()) return false;
return mm::IsFrozen(obj) || ((obj->type_info()->flags_ & TF_IMMUTABLE) != 0);
}