修复BUG,当线程数超过32时会存在内存越界的问题
This commit is contained in:
@@ -622,7 +622,7 @@ int NTC_APP_PLUG_INIT()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
int max_thread_num = get_thread_count();
|
int max_thread_num = get_thread_count();
|
||||||
g_ntc_app_plug.lhash_handle = (MESA_htable_handle *)calloc(32, sizeof(MESA_htable_handle));
|
g_ntc_app_plug.lhash_handle = (MESA_htable_handle *)calloc(max_thread_num, sizeof(MESA_htable_handle));
|
||||||
|
|
||||||
args.thread_safe = 0;
|
args.thread_safe = 0;
|
||||||
args.recursive = 0;
|
args.recursive = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user