here's a malloc optimization (from Ralf Jung) that isn't as cute as the one from yesterdaypic.twitter.com/tXtvTrtva7
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
Note that this kind of optimization can break security properties of real legitimate code.
real example?
There was such a bug in the FreeBSD kernel a couple of years ago, resulting from null-pointer UB optimizations (but not heap allocation elision)
Linux compiles with -fno-delete-null-pointer-checks due to a famous instance of this
This kind of thing makes me think our civilization is doomed
For example, saturating multiply then letting malloc fail, assuming mul didn't saturate if malloc succeeded.
well, this particular optimization only fires when the return value of malloc is only tested for null, it doesn't fire if it is used for real
making it (1) probably fairly harmless (2) probably fairly useless
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.