提交 fb702c0e 编写于 作者: Z Zoltan Varga

Avoid registering sequence points in the per-domain hash when AOT compiling.

上级 09437124
......@@ -3337,9 +3337,13 @@ mono_save_seq_point_info (MonoCompile *cfg)
cfg->seq_point_info = info;
// FIXME: dynamic methods
mono_domain_lock (domain);
g_hash_table_insert (domain_jit_info (domain)->seq_points, cfg->method_to_register, info);
mono_domain_unlock (domain);
if (!cfg->compile_aot) {
mono_domain_lock (domain);
// FIXME: How can the lookup succeed ?
if (!g_hash_table_lookup (domain_jit_info (domain)->seq_points, cfg->method_to_register))
g_hash_table_insert (domain_jit_info (domain)->seq_points, cfg->method_to_register, info);
mono_domain_unlock (domain);
}
g_ptr_array_free (cfg->seq_points, TRUE);
cfg->seq_points = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册