Loading...
libkern/c++/OSCollection.cpp xnu-1699.26.8 xnu-1228
--- xnu/xnu-1699.26.8/libkern/c++/OSCollection.cpp
+++ xnu/xnu-1228/libkern/c++/OSCollection.cpp
@@ -60,21 +60,9 @@
 
 void OSCollection::haveUpdated()
 {
-    if (fOptions & kImmutable)
-    {
-#if __LP64__
-	if (!(gIOKitDebug & kOSRegistryModsMode))
-#else
-	if (gIOKitDebug & kOSRegistryModsMode)
-#endif
-	{
-	    panic("Trying to change a collection in the registry");
-	}
-	else
-	{
-	    OSReportWithBacktrace("Trying to change a collection in the registry");
-	}
-    }
+    if ( (gIOKitDebug & kOSLogRegistryMods) && (fOptions & kImmutable) )
+	OSReportWithBacktrace("Trying to change a collection in the registry");
+
     updateStamp++;
 }