Loading...
libkern/c++/OSMetaClass.cpp xnu-12377.101.15 xnu-8020.121.3
--- xnu/xnu-12377.101.15/libkern/c++/OSMetaClass.cpp
+++ xnu/xnu-8020.121.3/libkern/c++/OSMetaClass.cpp
@@ -433,7 +433,7 @@
 {
 public:
 	OSMetaClassMeta();
-	OSObject * alloc() const override;
+	OSObject * alloc() const;
 };
 OSMetaClassMeta::OSMetaClassMeta()
 	: OSMetaClass("OSMetaClass", NULL, sizeof(OSMetaClass))
@@ -1106,7 +1106,7 @@
         maxDepth = sDeepestClass;
         if (maxDepth > kLocalDepth) {
                 nextIndex = IONewData(typeof(nextIndex[0]), maxDepth);
-                sets      = IONew(typeof(sets[0]), maxDepth);
+                sets      = IONewData(typeof(sets[0]), maxDepth);
 	}
         done = false;
         level = 0;
@@ -1138,7 +1138,7 @@
 	}while (!done);
         if (maxDepth > kLocalDepth) {
                 IODeleteData(nextIndex, typeof(nextIndex[0]), maxDepth);
-                IODelete(sets, typeof(sets[0]), maxDepth);
+                IODeleteData(sets, typeof(sets[0]), maxDepth);
 	}
 }
 
@@ -1545,8 +1545,6 @@
 
 #if IOTRACKING
 
-__typed_allocators_ignore_push
-
 void *
 OSMetaClass::trackedNew(size_t size)
 {
@@ -1576,8 +1574,6 @@
         OSIVAR_ACCUMSIZE(-size);
 }
 
-__typed_allocators_ignore_pop
-
 void
 OSMetaClass::trackedInstance(OSObject * instance) const
 {