Skip to content

Commit

Permalink
Merge pull request #445 from pshipton/sysprops
Browse files Browse the repository at this point in the history
Include System.c natives to make use of SystemProps$Raw
  • Loading branch information
keithc-ca authored Feb 28, 2025
2 parents a50a544 + 5393df9 commit 5aefb3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 23 deletions.
23 changes: 0 additions & 23 deletions closed/src/java.base/share/native/libjava/System.c

This file was deleted.

8 changes: 8 additions & 0 deletions src/java.base/share/native/libjava/System.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
* questions.
*/

/*
* ===========================================================================
* (c) Copyright IBM Corp. 2025, 2025 All Rights Reserved
* ===========================================================================
*/

#include <string.h>

#include "jni.h"
Expand Down Expand Up @@ -289,6 +295,7 @@ Java_java_lang_System_setErr0(JNIEnv *env, jclass cla, jobject stream)
(*env)->SetStaticObjectField(env,cla,fid,stream);
}

#if 0 /* Exclude mapLibraryName so it doesn't conflict with the OpenJ9 native. */
static void cpchars(jchar *dst, char *src, int n)
{
int i;
Expand Down Expand Up @@ -322,3 +329,4 @@ Java_java_lang_System_mapLibraryName(JNIEnv *env, jclass ign, jstring libname)

return (*env)->NewString(env, chars, len);
}
#endif /* Exclude mapLibraryName so it doesn't conflict with the OpenJ9 native. */

0 comments on commit 5aefb3b

Please sign in to comment.