mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8234185: Cleanup usage of canonicalize function between libjava, hotspot and libinstrument
Reviewed-by: dholmes, alanb, sspitsyn
This commit is contained in:
parent
b8dbdd1232
commit
547e472c42
9 changed files with 54 additions and 81 deletions
|
@ -934,20 +934,6 @@ JNU_ReleaseStringPlatformChars(JNIEnv *env, jstring jstr, const char *str)
|
|||
free((void *)str);
|
||||
}
|
||||
|
||||
/*
|
||||
* Export the platform dependent path canonicalization so that
|
||||
* VM can find it when loading system classes.
|
||||
* This function is also used by the instrumentation agent.
|
||||
*/
|
||||
extern int canonicalize(char *path, const char *out, int len);
|
||||
|
||||
JNIEXPORT int
|
||||
Canonicalize(JNIEnv *unused, char *orig, char *out, int len)
|
||||
{
|
||||
/* canonicalize an already natived path */
|
||||
return canonicalize(orig, out, len);
|
||||
}
|
||||
|
||||
JNIEXPORT jclass JNICALL
|
||||
JNU_ClassString(JNIEnv *env)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue