255 gdata->property_path_separator |
255 gdata->property_path_separator |
256 = getPropertyUTF8(env, "path.separator"); |
256 = getPropertyUTF8(env, "path.separator"); |
257 gdata->property_user_dir |
257 gdata->property_user_dir |
258 = getPropertyUTF8(env, "user.dir"); |
258 = getPropertyUTF8(env, "user.dir"); |
259 |
259 |
260 /* Get agent properties: invoke sun.misc.VMSupport.getAgentProperties */ |
260 /* Get agent properties: invoke VMSupport.getAgentProperties */ |
261 localVMSupportClass = JNI_FUNC_PTR(env,FindClass) |
261 localVMSupportClass = JNI_FUNC_PTR(env,FindClass) |
262 (env, "sun/misc/VMSupport"); |
262 (env, "jdk/internal/vm/VMSupport"); |
263 if (localVMSupportClass == NULL) { |
263 if (localVMSupportClass == NULL) { |
264 gdata->agent_properties = NULL; |
264 gdata->agent_properties = NULL; |
265 if (JNI_FUNC_PTR(env,ExceptionOccurred)(env)) { |
265 if (JNI_FUNC_PTR(env,ExceptionOccurred)(env)) { |
266 JNI_FUNC_PTR(env,ExceptionClear)(env); |
266 JNI_FUNC_PTR(env,ExceptionClear)(env); |
267 } |
267 } |
274 (env, localVMSupportClass, getAgentProperties); |
274 (env, localVMSupportClass, getAgentProperties); |
275 saveGlobalRef(env, localAgentProperties, &(gdata->agent_properties)); |
275 saveGlobalRef(env, localAgentProperties, &(gdata->agent_properties)); |
276 if (JNI_FUNC_PTR(env,ExceptionOccurred)(env)) { |
276 if (JNI_FUNC_PTR(env,ExceptionOccurred)(env)) { |
277 JNI_FUNC_PTR(env,ExceptionClear)(env); |
277 JNI_FUNC_PTR(env,ExceptionClear)(env); |
278 EXIT_ERROR(AGENT_ERROR_INTERNAL, |
278 EXIT_ERROR(AGENT_ERROR_INTERNAL, |
279 "Exception occurred calling sun.misc.VMSupport.getAgentProperties"); |
279 "Exception occurred calling VMSupport.getAgentProperties"); |
280 } |
280 } |
281 } |
281 } |
282 |
282 |
283 } END_WITH_LOCAL_REFS(env); |
283 } END_WITH_LOCAL_REFS(env); |
284 |
284 |