35 public static unsafe
void init()
38 throw new NotImplementedException();
40 if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
44 var size = LibIkvm.Instance.sig_get_size_sigaction();
45 Debug.Assert(size > 0);
46 var save = stackalloc
byte[size];
49 if (LibIkvm.Instance.sig_get_chld_action(save) != 0)
54 __callerID ??= global::ikvm.@
internal.CallerID.create(UNIXProcessAccessor.Type.TypeHandle);
55 __jniPtr__init ??= Marshal.GetDelegateForFunctionPointer<__jniDelegate__init>(
JNIFrame.
GetFuncPtr(__callerID,
"java/lang/UNIXProcess", nameof(
init),
"()V"));
57 var jniEnv = jniFrm.Enter(__callerID);
60 __jniPtr__init(jniEnv, jniFrm.MakeLocalRef(typeof(
ClassLiteral<>).MakeGenericType(UNIXProcessAccessor.Type)));
64 global::System.Console.WriteLine(
"*** exception in native code ***");
65 global::System.Console.WriteLine(ex);
76 if (LibIkvm.Instance.sig_set_chld_action(save) != 0)