Skip to content

Commit 41056c7

Browse files
committed
Stuff
1 parent 51c32fc commit 41056c7

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/Xamarin.Android.Build.Tasks/Tasks/GenerateJavaStubs.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ void Run (bool useMarshalMethods)
219219
return;
220220
}
221221
state.PinvokeInfos = pinfos;
222+
Log.LogDebugMessage ($"Number of unique p/invokes for architecture '{arch}': {pinfos.Count}");
222223
}
223224

224225
// If this is the first architecture, we need to store the state for later use

src/native/pinvoke-override/dynamic.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include "logger.hh"
2+
13
#define PINVOKE_OVERRIDE_INLINE [[gnu::noinline]]
24
#include "pinvoke-override-api.hh"
35

@@ -7,6 +9,9 @@ using namespace xamarin::android;
79
void*
810
PinvokeOverride::monodroid_pinvoke_override (const char *library_name, const char *entrypoint_name)
911
{
12+
log_info (LOG_ASSEMBLY, __PRETTY_FUNCTION__);
13+
log_info (LOG_ASSEMBLY, "library_name == '%s'; entrypoint_name == '%s'", library_name, entrypoint_name);
14+
1015
// TODO: implement
1116
return nullptr;
1217
}

src/native/pinvoke-override/pinvoke-override-api-impl.hh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ namespace xamarin::android {
7373

7474
bool already_loaded = !__atomic_compare_exchange (
7575
/* ptr */ &entry.func,
76-
/* expected */ &expected_null,
77-
/* desired */ &entry_handle,
78-
/* weak */ false,
79-
/* success_memorder */ __ATOMIC_ACQUIRE,
80-
/* failure_memorder */ __ATOMIC_RELAXED
76+
/* expected */ &expected_null,
77+
/* desired */ &entry_handle,
78+
/* weak */ false,
79+
/* success_memorder */ __ATOMIC_ACQUIRE,
80+
/* failure_memorder */ __ATOMIC_RELAXED
8181
);
8282

8383
if (already_loaded) {

0 commit comments

Comments
 (0)