4 ms·
Author fails to mention that they are using an undocumented API to retrieve this information. Staying away from undocumented API's has been the rule since day o
by xsmasher 17y ago
Author fails to mention that they are using an undocumented API to retrieve this information. Staying away from undocumented API's has been the rule since day one.
- blasdel 17y agoWhat the fuck are you talking about? Making a goddamn syscall to get the VM usage of other processes is not an undocumented API.
- antonovka 17y agoYes -- the API (host_statistics() on Darwin) is in the public headers and is not private. Of course, it wasn't the ability to show free memory that they removed, rather, the ability to trigger OS low memory handling by allocating (nearly) all available free memory.
- blasdel 17y agoMaybe he'll try to tell us "malloc() ain't a part of no public API I ever herd of!"