Skip to content

Commit 5f35bf1

Browse files
committed
Post-rebase fixes
1 parent b3e9ef8 commit 5f35bf1

File tree

7 files changed

+5
-2257
lines changed

7 files changed

+5
-2257
lines changed

src/native/monodroid/internal-pinvokes.cc

Lines changed: 0 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,14 @@ monodroid_get_log_categories ()
1515
int
1616
monodroid_get_system_property (const char *name, char **value)
1717
{
18-
<<<<<<< HEAD
19-
<<<<<<< HEAD
2018
return AndroidSystem::monodroid_get_system_property (name, value);
21-
=======
22-
return AndroidSystem::monodroid_get_system_property (name, value);
23-
>>>>>>> 13ba4b152 (Let's see what breaks)
24-
=======
25-
return AndroidSystem::monodroid_get_system_property (name, value);
26-
>>>>>>> 87926b42b (Formatting)
2719
}
2820

2921
int
3022
monodroid_embedded_assemblies_set_assemblies_prefix (const char *prefix)
3123
{
32-
<<<<<<< HEAD
33-
<<<<<<< HEAD
34-
embeddedAssemblies.set_assemblies_prefix (prefix);
35-
return 0;
36-
=======
37-
embeddedAssemblies.set_assemblies_prefix (prefix);
38-
return 0;
39-
>>>>>>> 13ba4b152 (Let's see what breaks)
40-
=======
4124
embeddedAssemblies.set_assemblies_prefix (prefix);
4225
return 0;
43-
>>>>>>> 87926b42b (Formatting)
4426
}
4527

4628
void
@@ -80,29 +62,13 @@ monodroid_log (LogLevel level, LogCategories category, const char *message)
8062
void
8163
monodroid_free (void *ptr)
8264
{
83-
<<<<<<< HEAD
84-
<<<<<<< HEAD
8565
free (ptr);
86-
=======
87-
free (ptr);
88-
>>>>>>> 13ba4b152 (Let's see what breaks)
89-
=======
90-
free (ptr);
91-
>>>>>>> 87926b42b (Formatting)
9266
}
9367

9468
int
9569
_monodroid_max_gref_get ()
9670
{
97-
<<<<<<< HEAD
98-
<<<<<<< HEAD
99-
return static_cast<int>(AndroidSystem::get_max_gref_count ());
100-
=======
101-
return static_cast<int>(AndroidSystem::get_max_gref_count ());
102-
>>>>>>> 13ba4b152 (Let's see what breaks)
103-
=======
10471
return static_cast<int>(AndroidSystem::get_max_gref_count ());
105-
>>>>>>> 87926b42b (Formatting)
10672
}
10773

10874
int
@@ -115,43 +81,19 @@ _monodroid_gref_get ()
11581
void
11682
_monodroid_gref_log (const char *message)
11783
{
118-
<<<<<<< HEAD
119-
<<<<<<< HEAD
12084
osBridge._monodroid_gref_log (message);
121-
=======
122-
osBridge._monodroid_gref_log (message);
123-
>>>>>>> 13ba4b152 (Let's see what breaks)
124-
=======
125-
osBridge._monodroid_gref_log (message);
126-
>>>>>>> 87926b42b (Formatting)
12785
}
12886

12987
int
13088
_monodroid_gref_log_new (jobject curHandle, char curType, jobject newHandle, char newType, const char *threadName, int threadId, const char *from, int from_writable)
13189
{
132-
<<<<<<< HEAD
133-
<<<<<<< HEAD
134-
return osBridge._monodroid_gref_log_new (curHandle, curType, newHandle, newType, threadName, threadId, from, from_writable);
135-
=======
136-
return osBridge._monodroid_gref_log_new (curHandle, curType, newHandle, newType, threadName, threadId, from, from_writable);
137-
>>>>>>> 13ba4b152 (Let's see what breaks)
138-
=======
13990
return osBridge._monodroid_gref_log_new (curHandle, curType, newHandle, newType, threadName, threadId, from, from_writable);
140-
>>>>>>> 87926b42b (Formatting)
14191
}
14292

14393
void
14494
_monodroid_gref_log_delete (jobject handle, char type, const char *threadName, int threadId, const char *from, int from_writable)
14595
{
146-
<<<<<<< HEAD
147-
<<<<<<< HEAD
14896
osBridge._monodroid_gref_log_delete (handle, type, threadName, threadId, from, from_writable);
149-
=======
150-
osBridge._monodroid_gref_log_delete (handle, type, threadName, threadId, from, from_writable);
151-
>>>>>>> 13ba4b152 (Let's see what breaks)
152-
=======
153-
osBridge._monodroid_gref_log_delete (handle, type, threadName, threadId, from, from_writable);
154-
>>>>>>> 87926b42b (Formatting)
15597
}
15698

15799
int
@@ -163,116 +105,50 @@ _monodroid_weak_gref_get ()
163105
void
164106
_monodroid_weak_gref_new (jobject curHandle, char curType, jobject newHandle, char newType, const char *threadName, int threadId, const char *from, int from_writable)
165107
{
166-
<<<<<<< HEAD
167-
<<<<<<< HEAD
168-
osBridge._monodroid_weak_gref_new (curHandle, curType, newHandle, newType, threadName, threadId, from, from_writable);
169-
=======
170-
osBridge._monodroid_weak_gref_new (curHandle, curType, newHandle, newType, threadName, threadId, from, from_writable);
171-
>>>>>>> 13ba4b152 (Let's see what breaks)
172-
=======
173108
osBridge._monodroid_weak_gref_new (curHandle, curType, newHandle, newType, threadName, threadId, from, from_writable);
174-
>>>>>>> 87926b42b (Formatting)
175109
}
176110

177111
void
178112
_monodroid_weak_gref_delete (jobject handle, char type, const char *threadName, int threadId, const char *from, int from_writable)
179113
{
180-
<<<<<<< HEAD
181-
<<<<<<< HEAD
182114
osBridge._monodroid_weak_gref_delete (handle, type, threadName, threadId, from, from_writable);
183-
=======
184-
osBridge._monodroid_weak_gref_delete (handle, type, threadName, threadId, from, from_writable);
185-
>>>>>>> 13ba4b152 (Let's see what breaks)
186-
=======
187-
osBridge._monodroid_weak_gref_delete (handle, type, threadName, threadId, from, from_writable);
188-
>>>>>>> 87926b42b (Formatting)
189115
}
190116

191117
void
192118
_monodroid_lref_log_new (int lrefc, jobject handle, char type, const char *threadName, int threadId, const char *from, int from_writable)
193119
{
194-
<<<<<<< HEAD
195-
<<<<<<< HEAD
196-
osBridge._monodroid_lref_log_new (lrefc, handle, type, threadName, threadId, from, from_writable);
197-
=======
198-
osBridge._monodroid_lref_log_new (lrefc, handle, type, threadName, threadId, from, from_writable);
199-
>>>>>>> 13ba4b152 (Let's see what breaks)
200-
=======
201120
osBridge._monodroid_lref_log_new (lrefc, handle, type, threadName, threadId, from, from_writable);
202-
>>>>>>> 87926b42b (Formatting)
203121
}
204122

205123
void
206124
_monodroid_lref_log_delete (int lrefc, jobject handle, char type, const char *threadName, int threadId, const char *from, int from_writable)
207125
{
208-
<<<<<<< HEAD
209-
<<<<<<< HEAD
210-
osBridge._monodroid_lref_log_delete (lrefc, handle, type, threadName, threadId, from, from_writable);
211-
=======
212-
osBridge._monodroid_lref_log_delete (lrefc, handle, type, threadName, threadId, from, from_writable);
213-
>>>>>>> 13ba4b152 (Let's see what breaks)
214-
=======
215126
osBridge._monodroid_lref_log_delete (lrefc, handle, type, threadName, threadId, from, from_writable);
216-
>>>>>>> 87926b42b (Formatting)
217127
}
218128

219129
void
220130
_monodroid_gc_wait_for_bridge_processing ()
221131
{
222-
<<<<<<< HEAD
223-
<<<<<<< HEAD
224132
mono_gc_wait_for_bridge_processing ();
225-
=======
226-
mono_gc_wait_for_bridge_processing ();
227-
>>>>>>> 13ba4b152 (Let's see what breaks)
228-
=======
229-
mono_gc_wait_for_bridge_processing ();
230-
>>>>>>> 87926b42b (Formatting)
231133
}
232134

233135
int
234136
_monodroid_get_android_api_level ()
235137
{
236-
<<<<<<< HEAD
237-
<<<<<<< HEAD
238-
return monodroidRuntime.get_android_api_level ();
239-
=======
240-
return monodroidRuntime.get_android_api_level ();
241-
>>>>>>> 13ba4b152 (Let's see what breaks)
242-
=======
243138
return monodroidRuntime.get_android_api_level ();
244-
>>>>>>> 87926b42b (Formatting)
245139
}
246140

247141
void
248142
monodroid_clear_gdb_wait ()
249143
{
250-
<<<<<<< HEAD
251-
<<<<<<< HEAD
252144
monodroidRuntime.set_monodroid_gdb_wait (false);
253-
=======
254-
monodroidRuntime.set_monodroid_gdb_wait (false);
255-
>>>>>>> 13ba4b152 (Let's see what breaks)
256-
=======
257-
monodroidRuntime.set_monodroid_gdb_wait (false);
258-
>>>>>>> 87926b42b (Formatting)
259145
}
260146

261147
void*
262148
_monodroid_get_identity_hash_code (JNIEnv *env, void *v)
263149
{
264-
<<<<<<< HEAD
265-
<<<<<<< HEAD
266-
intptr_t rv = env->CallStaticIntMethod (monodroidRuntime.get_java_class_System (), monodroidRuntime.get_java_class_method_System_identityHashCode (), v);
267-
return (void*) rv;
268-
=======
269-
intptr_t rv = env->CallStaticIntMethod (monodroidRuntime.get_java_class_System (), monodroidRuntime.get_java_class_method_System_identityHashCode (), v);
270-
return (void*) rv;
271-
>>>>>>> 13ba4b152 (Let's see what breaks)
272-
=======
273150
intptr_t rv = env->CallStaticIntMethod (monodroidRuntime.get_java_class_System (), monodroidRuntime.get_java_class_method_System_identityHashCode (), v);
274151
return (void*) rv;
275-
>>>>>>> 87926b42b (Formatting)
276152
}
277153

278154
void*
@@ -430,15 +306,7 @@ monodroid_dylib_mono_free ([[maybe_unused]] void *mono_imports)
430306
https://github.com/dotnet/java-interop/blob/master/src/java-interop/java-interop-gc-bridge-mono.c#L266
431307
432308
it should also accept libmono_path = nullptr parameter
433-
<<<<<<< HEAD
434-
<<<<<<< HEAD
435-
*/
436-
=======
437-
*/
438-
>>>>>>> 13ba4b152 (Let's see what breaks)
439-
=======
440309
*/
441-
>>>>>>> 87926b42b (Formatting)
442310
int
443311
monodroid_dylib_mono_init (void *mono_imports, [[maybe_unused]] const char *libmono_path)
444312
{

src/native/pinvoke-override/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ macro(create_library _libname _alias _sources)
3535

3636
add_library(${_alias} ALIAS ${_libname})
3737

38-
<<<<<<< HEAD
3938
set_static_library_suffix(${_libname})
4039

41-
=======
42-
>>>>>>> 13ba4b152 (Let's see what breaks)
4340
target_compile_definitions(
4441
${_libname}
4542
PRIVATE

src/native/pinvoke-override/common.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,4 @@
33
using namespace xamarin::android;
44

55
PinvokeOverride::pinvoke_library_map PinvokeOverride::other_pinvoke_map (PinvokeOverride::LIBRARY_MAP_INITIAL_BUCKET_COUNT);
6-
<<<<<<< HEAD
7-
<<<<<<< HEAD
86
xamarin::android::mutex PinvokeOverride::pinvoke_map_write_lock;
9-
=======
10-
std::mutex PinvokeOverride::pinvoke_map_write_lock;
11-
>>>>>>> 13ba4b152 (Let's see what breaks)
12-
=======
13-
xamarin::android::mutex PinvokeOverride::pinvoke_map_write_lock;
14-
>>>>>>> da87011a5 (Fix post-rebase issues and conflicts)

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,7 @@ namespace xamarin::android {
7878
static void* monodroid_pinvoke_override (const char *library_name, const char *entrypoint_name);
7979

8080
private:
81-
<<<<<<< HEAD
8281
static xamarin::android::mutex pinvoke_map_write_lock;
83-
=======
84-
static xamarin::android::mutex pinvoke_map_write_lock;
85-
>>>>>>> da87011a5 (Fix post-rebase issues and conflicts)
8682
static pinvoke_library_map other_pinvoke_map;
8783

8884
#if defined(PRECOMPILED)

0 commit comments

Comments
 (0)