Skip to content

Commit 630eeeb

Browse files
committed
Add some logs and update structure layout
1 parent cc0be44 commit 630eeeb

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/native/clr/host/assembly-store.cc

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ auto AssemblyStore::get_assembly_data (AssemblyStoreSingleAssemblyRuntimeData co
2626
uint32_t assembly_data_size = 0;
2727

2828
#if defined (HAVE_LZ4) && defined (RELEASE)
29+
log_debug (LOG_ASSEMBLY, "Decompressing assembly '{}' from the assembly store", name);
2930
auto header = reinterpret_cast<const CompressedAssemblyHeader*>(e.image_data);
3031
if (header->magic == COMPRESSED_DATA_MAGIC) {
3132
if (compressed_assemblies.descriptors == nullptr) [[unlikely]] {
@@ -110,6 +111,7 @@ auto AssemblyStore::get_assembly_data (AssemblyStoreSingleAssemblyRuntimeData co
110111
} else
111112
#endif // def HAVE_LZ4 && def RELEASE
112113
{
114+
log_debug (LOG_ASSEMBLY, "Assembly '{}' is not compressed in the assembly store", name);
113115
set_assembly_data_and_size (e.image_data, e.descriptor->data_size, assembly_data, assembly_data_size);
114116
}
115117

src/native/clr/host/host.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ size_t Host::clr_get_runtime_property (const char *key, char *value_buffer, size
3131
bool Host::clr_external_assembly_probe (const char *path, void **data_start, int64_t *size) noexcept
3232
{
3333
// TODO: `path` might be a full path, make sure it isn't
34-
log_debug (LOG_DEFAULT, "clr_bundle_probe (\"{}\"...)", path);
34+
log_debug (LOG_DEFAULT, "clr_external_assembly_probe (\"{}\"...)", path);
3535
if (data_start == nullptr || size == nullptr) {
3636
return false; // TODO: abort instead?
3737
}

src/native/clr/include/host/host.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ namespace xamarin::android {
5757
.size = sizeof(host_runtime_contract),
5858
.context = nullptr,
5959
.get_runtime_property = clr_get_runtime_property,
60-
.external_assembly_probe = clr_external_assembly_probe,
6160
.bundle_probe = nullptr,
6261
.pinvoke_override = clr_pinvoke_override,
62+
.external_assembly_probe = clr_external_assembly_probe,
6363
};
6464

6565
// Enough to fit 0xffffffffffffffff + terminating NUL

0 commit comments

Comments
 (0)