comparison src/share/vm/runtime/reflectionUtils.cpp @ 10815:88dd08d7be0f

8137058: Clear out all non-Critical APIs from sun.reflect Reviewed-by: alanb, jfranck, mchung
author chegar
date Fri, 15 Apr 2016 16:19:15 +0100
parents afe58d604f28
children 631fb590133e
comparison
equal deleted inserted replaced
7:19621f7837a6 8:e24d97cc437f
74 74
75 void FilteredFieldsMap::initialize() { 75 void FilteredFieldsMap::initialize() {
76 int offset; 76 int offset;
77 offset = java_lang_Throwable::get_backtrace_offset(); 77 offset = java_lang_Throwable::get_backtrace_offset();
78 _filtered_fields->append(new FilteredField(SystemDictionary::Throwable_klass(), offset)); 78 _filtered_fields->append(new FilteredField(SystemDictionary::Throwable_klass(), offset));
79 offset = sun_reflect_ConstantPool::oop_offset(); 79 offset = reflect_ConstantPool::oop_offset();
80 _filtered_fields->append(new FilteredField(SystemDictionary::reflect_ConstantPool_klass(), offset)); 80 _filtered_fields->append(new FilteredField(SystemDictionary::reflect_ConstantPool_klass(), offset));
81 offset = sun_reflect_UnsafeStaticFieldAccessorImpl::base_offset(); 81 offset = reflect_UnsafeStaticFieldAccessorImpl::base_offset();
82 _filtered_fields->append(new FilteredField(SystemDictionary::reflect_UnsafeStaticFieldAccessorImpl_klass(), offset)); 82 _filtered_fields->append(new FilteredField(SystemDictionary::reflect_UnsafeStaticFieldAccessorImpl_klass(), offset));
83 } 83 }
84 84
85 int FilteredFieldStream::field_count() { 85 int FilteredFieldStream::field_count() {
86 int numflds = 0; 86 int numflds = 0;