29 Dec
2015
29 Dec
'15
2:53 p.m.
https://bugs.winehq.org/show_bug.cgi?id=39885 --- Comment #1 from rynzar(a)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.