diff options
Diffstat (limited to 'src/analysis/disass/area.c')
-rw-r--r-- | src/analysis/disass/area.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/analysis/disass/area.c b/src/analysis/disass/area.c index 655d5af..c52934f 100644 --- a/src/analysis/disass/area.c +++ b/src/analysis/disass/area.c @@ -39,6 +39,7 @@ #include "../../common/sort.h" #include "../../core/global.h" #include "../../core/logs.h" +#include "../../core/nproc.h" #include "../../format/format.h" #include "../../glibext/delayed-int.h" @@ -1907,7 +1908,7 @@ mem_area *collect_memory_areas(wgroup_id_t gid, GtkStatusStack *status, GLoadedB /* Lancement des traitements */ - runs_count = g_get_num_processors(); + runs_count = get_max_online_threads(); collectors = (GAreaCollector **)calloc(runs_count, sizeof(GAreaCollector *)); @@ -2085,7 +2086,7 @@ void populate_fresh_memory_areas(wgroup_id_t gid, GtkStatusStack *status, mem_ar icount = _g_preload_info_count_instructions(info); - runs_count = g_get_num_processors(); + runs_count = get_max_online_threads(); collectors = (GAreaCollector **)calloc(runs_count, sizeof(GAreaCollector *)); @@ -2236,7 +2237,7 @@ GArchInstruction **collect_disassembled_instructions(wgroup_id_t gid, GtkStatusS /* Lancement des traitements */ - runs_count = g_get_num_processors(); + runs_count = get_max_online_threads(); collectors = (GAreaCollector **)calloc(runs_count, sizeof(GAreaCollector *)); |