mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
2009-05-04 Zoltan Varga <[email protected]>
* aot-runtime.c (load_method): Kill the old and bit-rotten use_loaded_code option. svn path=/trunk/mono/; revision=133464
This commit is contained in:
1 parent
66d373f27c
commit
8c052d41c9
2 files changed
+3
-23
No files matched your search
@@ -1,5 +1,8 @@
|
||||
2009-05-04 Zoltan Varga <[email protected]>
|
||||
|
||||
* aot-runtime.c (load_method): Kill the old and bit-rotten use_loaded_code
|
||||
option.
|
||||
|
||||
* mini-<ARCH>.h mini-trampolines.c aot-runtime.c: Kill the
|
||||
MONO_ARCH_HAVE_CREATE_TRAMPOLINE_FROM_TOKEN define.
|
||||
|
||||
|
||||
@@ -151,15 +151,6 @@ static CRITICAL_SECTION aot_mutex;
|
||||
*/
|
||||
static GHashTable *static_aot_modules;
|
||||
|
||||
/*
|
||||
* Disabling this will make a copy of the loaded code and use the copy instead
|
||||
* of the original. This will place the caller and the callee close to each
|
||||
* other in memory, possibly improving cache behavior. Since the original
|
||||
* code is in copy-on-write memory, this will not increase the memory usage
|
||||
* of the runtime.
|
||||
*/
|
||||
static gboolean use_loaded_code = TRUE;
|
||||
|
||||
/*
|
||||
* Whenever to AOT compile loaded assemblies on demand and store them in
|
||||
* a cache under $HOME/.mono/aot-cache.
|
||||
@@ -2054,20 +2045,6 @@ load_method (MonoDomain *domain, MonoAotModule *aot_module, MonoImage *image, Mo
|
||||
klass = decode_klass_ref (aot_module, p, &p);
|
||||
}
|
||||
|
||||
if (!use_loaded_code) {
|
||||
guint8 *code2;
|
||||
|
||||
if (!jinfo) {
|
||||
ex_info = &aot_module->ex_info [aot_module->ex_info_offsets [mono_metadata_token_index (token) - 1]];
|
||||
jinfo = decode_exception_debug_info (aot_module, domain, method, ex_info, code);
|
||||
}
|
||||
|
||||
code2 = mono_domain_code_reserve (domain, jinfo->code_size);
|
||||
memcpy (code2, code, jinfo->code_size);
|
||||
mono_arch_flush_icache (code2, jinfo->code_size);
|
||||
code = code2;
|
||||
}
|
||||
|
||||
if (aot_module->opts & MONO_OPT_SHARED)
|
||||
used_strings = decode_value (p, &p);
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user