-
-
Notifications
You must be signed in to change notification settings - Fork 422
Conversation
|
Fleshed it out. |
|
|
||
| import core.stdc.stdio; | ||
|
|
||
| version (none) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put this in a unittest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
won't really work as a unittest
|
I think issuing one printf per allocation will be quite onerous for all but the most trivial apps. If you want to make this a turnkey solution (no user-defined code needed), you need to collect things in a hashtable. |
|
I'll do the hashtable, this is just a start. |
|
k |
|
Auto-merge toggled on |
|
We already have a druntime internal malloc based hashtable. |
Druntime part of dlang/dmd#4621
It's basically a stub, and will get fleshed out when the idea is accepted (i.e. pulled).