On Sunday, 9 February 2014 at 11:31:12 UTC, Daniel Murphy wrote:
void index(HTTPServerRequest req, HTTPServerResponse res) { static const exc = new HTTPStatusException(HTTPStatus.NotFound); throw exc; }exc is created at compile time and put the tls init data. No gc heap activity is ever involved in creating it.
It's actually put in global storage, not TLS, as of last I checked (as of the original pull by Igor). It's the reason mutable instances are currently disallowed.
