Skip to content

Commit

Permalink
Print which code path is used for library iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
artdeell committed Jan 21, 2024
1 parent b306ad9 commit 327826f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ EXTERN_C_ENTER

JNIEXPORT int JNICALL Java_org_lwjgl_system_SharedLibraryUtil_getLibraryPath(JNIEnv *env, jclass clazz, jlong pLibAddress, jlong sOutAddress, int bufSize)
{
printf("LWJGL: Using dlinfo() code path\n");
UNUSED_PARAMS(env, clazz)
void *pLib = (void *)(uintptr_t)pLibAddress;
char *sOut = (char *)(uintptr_t)sOutAddress;
Expand Down Expand Up @@ -296,6 +297,7 @@ EXTERN_C_ENTER

JNIEXPORT int JNICALL Java_org_lwjgl_system_SharedLibraryUtil_getLibraryPath(JNIEnv *env, jclass clazz, jlong pLibAddress, jlong sOutAddress, jint bufSize)
{
printf("LWJGL: Using phdr iterator code path\n");
UNUSED_PARAMS(env, clazz)
void *pLib = (void *)(uintptr_t)pLibAddress;
char *sOut = (char *)(uintptr_t)sOutAddress;
Expand Down Expand Up @@ -328,6 +330,7 @@ EXTERN_C_ENTER

JNIEXPORT int JNICALL Java_org_lwjgl_system_SharedLibraryUtil_getLibraryPath(JNIEnv *env, jclass clazz, jlong pLibAddress, jlong sOutAddress, jint bufSize)
{
printf("LWJGL: Using suboptimal code path\n");
UNUSED_PARAMS(env, clazz)
void *pLib = (void *)(uintptr_t)pLibAddress;
char *sOut = (char *)(uintptr_t)sOutAddress;
Expand Down

0 comments on commit 327826f

Please sign in to comment.