util/HugeAllocator: document std::bad_alloc

This commit is contained in:
Max Kellermann 2017-09-19 19:45:52 +02:00
parent 8662427d48
commit 11dbba3503
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,8 @@
* Allocate a huge amount of memory. This will be done in a way that * Allocate a huge amount of memory. This will be done in a way that
* allows giving the memory back to the kernel as soon as we don't * allows giving the memory back to the kernel as soon as we don't
* need it anymore. On the downside, this call is expensive. * need it anymore. On the downside, this call is expensive.
*
* Throws std::bad_alloc on error
*/ */
gcc_malloc gcc_malloc
void * void *