use unsigned long long int to prevent OS memory optimisation :3
This commit is contained in:
parent
a258b4bbea
commit
aeb84dc19a
3
main.c
3
main.c
|
@ -1,5 +1,6 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <limits.h>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
||||||
|
@ -33,7 +34,7 @@ int main() {
|
||||||
unsigned long long int* wtf = (unsigned long long int*) malloc(size);
|
unsigned long long int* wtf = (unsigned long long int*) malloc(size);
|
||||||
|
|
||||||
for (unsigned long long int i = 0; i < size / sizeof(long long int); i++) {
|
for (unsigned long long int i = 0; i < size / sizeof(long long int); i++) {
|
||||||
wtf[i] = 0x80085;
|
wtf[i] = ULLONG_MAX;
|
||||||
if (i > 0 && i % (1024 * 1024 * 1024 / sizeof(long long int)) == 0) {
|
if (i > 0 && i % (1024 * 1024 * 1024 / sizeof(long long int)) == 0) {
|
||||||
printf(".");
|
printf(".");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
Loading…
Reference in a new issue