Skip to content

Commit

Permalink
Hold JNIEnv pointer using SafeHandle.
Browse files Browse the repository at this point in the history
Call through to V methods, just to check that we can. We can.
Add verbosity and diag back.
  • Loading branch information
wasabii committed Sep 15, 2023
1 parent 299e59b commit 2d053c4
Show file tree
Hide file tree
Showing 6 changed files with 332 additions and 309 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/IKVM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -604,9 +604,9 @@ jobs:
"--blame-crash",
"--blame-hang",
"--blame-hang-timeout", "30m",
"-v", "2",
"-v:diag",
"--results-directory", "TestResults",
"--logger:console;verbosity=detailed",
"--logger:console;verbosity=diag",
"--logger:trx",
"--collect", "'Code Coverage'"
)
Expand Down
3 changes: 1 addition & 2 deletions src/IKVM.Runtime/JNI/JNIEnv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Jeroen Frijters
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

using IKVM.ByteCode.Text;
Expand Down Expand Up @@ -424,7 +423,7 @@ internal static string DecodeMUTF8(byte* psz)
/// <param name="method"></param>
/// <param name="sig"></param>
/// <returns></returns>
internal static int GetMethodArgs(JNIEnv* pEnv, nint method, byte* sig)
internal static int GetMethodArgs(JNIEnv* pEnv, jmethodID method, byte* sig)
{
var args = RuntimeJavaMethod.FromCookie(method).GetParameters();
for (var i = 0; i < args.Length; i++)
Expand Down
Loading

0 comments on commit 2d053c4

Please sign in to comment.