diff options
author | Zoltan Varga <vargaz@gmail.com> | 2018-03-15 21:36:12 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2018-03-16 15:10:01 +0300 |
commit | dac607756165bca1c5327c5b96e885d91e8f005e (patch) | |
tree | 88d76755550ebdc5decc2aa08b514ec1cb80d013 | |
parent | 3141c9490d98f69d69508893bd6a404c5f01173d (diff) |
Increase the buffer size in emit_exception_debug_info ().mono-5.10.0.179
Fixes https://github.com/mono/mono/issues/7637.
-rw-r--r-- | mono/mini/aot-compiler.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mono/mini/aot-compiler.c b/mono/mini/aot-compiler.c index 9c31d8d4a09..f9fa1598272 100644 --- a/mono/mini/aot-compiler.c +++ b/mono/mini/aot-compiler.c @@ -6244,6 +6244,10 @@ emit_exception_debug_info (MonoAotCompile *acfg, MonoCompile *cfg, gboolean stor seq_points_size = (store_seq_points)? mono_seq_point_info_get_write_size (seq_points) : 0; buf_size = header->num_clauses * 256 + debug_info_size + 2048 + seq_points_size + cfg->gc_map_size; + if (jinfo->has_try_block_holes) { + MonoTryBlockHoleTableJitInfo *table = mono_jit_info_get_try_block_hole_table_info (jinfo); + buf_size += table->num_holes * 16; + } p = buf = (guint8 *)g_malloc (buf_size); |