You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[jcw-gen] DON'T generate Java Callable Wrappers in parallel
Partially reverst commit f0fa3c3.
The problem with f0fa3c3 is that Mono.Cecil follows the normal .NET
guidelines with respect to thread safety: static members are
thread-safe, but *instance members are not thread safe*.
Meaning accessing e.g. `TypeDefinition.Methods` isn't thread-safe.
Attempting to generate Java Callable Wrappers in parallel can result
in "bizarre" Javav code wherein not all Java members which should be
overridden are actually overidden, presumably because the
TypeDefinition of the type, some base type, or some implemented
interface, is being used concurrently from multiple threads.
Revert the Task use from commit f0fa3c3 and generate
Java Callable Wrappers sequentially, so that they're valid.
Copy file name to clipboardExpand all lines: src/Java.Interop.Tools.JavaCallableWrappers/Test/Java.Interop.Tools.JavaCallableWrappers/JavaCallableWrapperGeneratorTests.cs
-63Lines changed: 0 additions & 63 deletions
Original file line number
Diff line number
Diff line change
@@ -30,69 +30,6 @@ public void ConstructorExceptions ()
0 commit comments