Lines Matching full:memory_info
8401 " MEMORY_BASIC_INFORMATION memory_info;\n" +
8410 " memory_info.BaseAddress = g_last->top_reserved;\n" +
8412 " assert ((unsigned) memory_info.BaseAddress % g_pagesize == 0);\n" +
8414 " while (VirtualQuery (memory_info.BaseAddress, &memory_info, sizeof (memory_info))) {\n" +
8416 " assert ((unsigned) memory_info.BaseAddress % g_pagesize == 0);\n" +
8418 " printf (\"Query %p %d %s\\n\", memory_info.BaseAddress, memory_info.RegionSize,\n" +
8419 " memory_info.State == MEM_FREE ? \"FREE\":\n" +
8420 " (memory_info.State == MEM_RESERVE ? \"RESERVED\":\n" +
8421 " (memory_info.State == MEM_COMMIT ? \"COMMITTED\": \"?\")));\n" +
8424 " if (memory_info.State == MEM_FREE &&\n" +
8425 " (unsigned) memory_info.BaseAddress % g_regionsize == 0 &&\n" +
8426 " memory_info.RegionSize >= (unsigned) reserve_size) {\n" +
8434 " memory_info.BaseAddress = (char *) memory_info.BaseAddress + memory_info.RegionSize;\n" +
8436 " assert ((unsigned) memory_info.BaseAddress % g_pagesize == 0);\n" +
8443 " assert ((unsigned) memory_info.BaseAddress % g_regionsize == 0);\n" +
8446 " base_reserved = VirtualAlloc (memory_info.BaseAddress, reserve_size,\n" +
8457 " if (memory_info.BaseAddress && base_reserved != memory_info.BaseAddress)\n" +
8669 " MEMORY_BASIC_INFORMATION memory_info;\n" +
8670 " memory_info.BaseAddress = 0;\n" +
8672 " while (VirtualQuery (memory_info.BaseAddress, &memory_info, sizeof (memory_info))) {\n" +
8673 " switch (memory_info.State) {\n" +
8675 " *free += memory_info.RegionSize;\n" +
8678 memory_info.RegionSize;\n" +
8681 " *committed += memory_info.RegionSize;\n" +
8684 " memory_info.BaseAddress = (char *) memory_info.BaseAddress + memory_info.RegionSize;\n" +