[Bug 39885] Cannot allocate more than 32gb of memory
wine-bugs at winehq.org
wine-bugs at winehq.org
Tue Dec 29 14:53:56 CST 2015
https://bugs.winehq.org/show_bug.cgi?id=39885
--- Comment #1 from rynzar at gmail.com ---
The code I used was:
#include <stdlib.h>
#include <iostream>
int main()
{
size_t gb_in_bytes = size_t(1)<<size_t(30); // 1 GB in bytes (2^30).
// try to allocate 1 block of 'i' GB.
for (size_t i = 25; i < 35; ++ i) {
size_t n = i * gb_in_bytes;
void *p = ::malloc(n);
std::cout << "allocation of 1 x " << (n/double(gb_in_bytes)) << " GB of
data. Ok? " << ((p==0)? "nope" : "yes") << std::endl;
::free(p);
}
}
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list