Mercurial > hg > graal-jvmci-8
comparison src/share/vm/classfile/javaClasses.cpp @ 1980:828eafbd85cc
6348631: remove the use of the HPI library from Hotspot
Summary: move functions from hpi library to hotspot, communicate with licensees and open source community, check jdk for dependency, file CCC request
Reviewed-by: coleenp, acorn, dsamersoff
author | ikrylov |
---|---|
date | Wed, 01 Dec 2010 18:26:32 -0500 |
parents | f95d63e2154a |
children | 017cd8bce8a8 |
comparison
equal
deleted
inserted
replaced
1972:f95d63e2154a | 1980:828eafbd85cc |
---|---|
180 typedef jstring (*to_java_string_fn_t)(JNIEnv*, const char *); | 180 typedef jstring (*to_java_string_fn_t)(JNIEnv*, const char *); |
181 static to_java_string_fn_t _to_java_string_fn = NULL; | 181 static to_java_string_fn_t _to_java_string_fn = NULL; |
182 | 182 |
183 if (_to_java_string_fn == NULL) { | 183 if (_to_java_string_fn == NULL) { |
184 void *lib_handle = os::native_java_library(); | 184 void *lib_handle = os::native_java_library(); |
185 _to_java_string_fn = CAST_TO_FN_PTR(to_java_string_fn_t, hpi::dll_lookup(lib_handle, "NewStringPlatform")); | 185 _to_java_string_fn = CAST_TO_FN_PTR(to_java_string_fn_t, os::dll_lookup(lib_handle, "NewStringPlatform")); |
186 if (_to_java_string_fn == NULL) { | 186 if (_to_java_string_fn == NULL) { |
187 fatal("NewStringPlatform missing"); | 187 fatal("NewStringPlatform missing"); |
188 } | 188 } |
189 } | 189 } |
190 | 190 |
205 typedef char* (*to_platform_string_fn_t)(JNIEnv*, jstring, bool*); | 205 typedef char* (*to_platform_string_fn_t)(JNIEnv*, jstring, bool*); |
206 static to_platform_string_fn_t _to_platform_string_fn = NULL; | 206 static to_platform_string_fn_t _to_platform_string_fn = NULL; |
207 | 207 |
208 if (_to_platform_string_fn == NULL) { | 208 if (_to_platform_string_fn == NULL) { |
209 void *lib_handle = os::native_java_library(); | 209 void *lib_handle = os::native_java_library(); |
210 _to_platform_string_fn = CAST_TO_FN_PTR(to_platform_string_fn_t, hpi::dll_lookup(lib_handle, "GetStringPlatformChars")); | 210 _to_platform_string_fn = CAST_TO_FN_PTR(to_platform_string_fn_t, os::dll_lookup(lib_handle, "GetStringPlatformChars")); |
211 if (_to_platform_string_fn == NULL) { | 211 if (_to_platform_string_fn == NULL) { |
212 fatal("GetStringPlatformChars missing"); | 212 fatal("GetStringPlatformChars missing"); |
213 } | 213 } |
214 } | 214 } |
215 | 215 |