mirror of
https://github.com/ceph/ceph
synced 2025-01-10 13:10:46 +00:00
buffer: throw assertion when posix_memalign allocations fail
This commit is contained in:
parent
902ac7e40e
commit
45469042b4
@ -131,8 +131,10 @@ private:
|
||||
#ifdef DARWIN
|
||||
data = (char *) valloc (len);
|
||||
#else
|
||||
data = 0;
|
||||
::posix_memalign((void**)(void*)&data, PAGE_SIZE, len);
|
||||
#endif /* DARWIN */
|
||||
assert(data);
|
||||
inc_total_alloc(len);
|
||||
}
|
||||
~raw_posix_aligned() {
|
||||
|
Loading…
Reference in New Issue
Block a user