kotlin-native/runtime/src/legacymm/cpp/Memory.cpp
void MutationCheck(ObjHeader* obj) {
  if (obj->local()) return;
  auto* container = containerFor(obj);
  if (container == nullptr || container->frozen())
    ThrowInvalidMutabilityException(obj);
}
// This function is called from field mutators to check if object's header is frozen.
// If object is frozen or permanent, an exception is thrown.
This function is called from field mutators to check if object's header is frozen.
If object is frozen or permanent, an exception is thrown.
This function is called from field mutators to check if object ' s header is frozen . If object is frozen or permanent an exception is thrown .
void MutationCheck(ObjHeader* obj) {
  if (obj->local()) return;
  auto* container = containerFor(obj);
  if (container == nullptr || container->frozen())
    ThrowInvalidMutabilityException(obj);
}
void MutationCheck ( ObjHeader * obj ) { if ( obj -> local ( ) ) return ; auto * container = containerFor ( obj ) ; if ( container == nullptr || container -> frozen ( ) ) ThrowInvalidMutabilityException ( obj ) ; }
This function is called from field mutators to check if object's header is frozen.
This function is called from field mutators to check if object ' s header is frozen .