hotspot/src/share/vm/runtime/reflectionUtils.cpp
changeset 39275 c6cea32506a4
parent 37301 a936b4e01afb
child 46329 53ccc37bda19
equal deleted inserted replaced
39273:1d8c0c1e59d6 39275:c6cea32506a4
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    71 GrowableArray<FilteredField*> *FilteredFieldsMap::_filtered_fields =
    71 GrowableArray<FilteredField*> *FilteredFieldsMap::_filtered_fields =
    72   new (ResourceObj::C_HEAP, mtInternal) GrowableArray<FilteredField*>(3,true);
    72   new (ResourceObj::C_HEAP, mtInternal) GrowableArray<FilteredField*>(3,true);
    73 
    73 
    74 
    74 
    75 void FilteredFieldsMap::initialize() {
    75 void FilteredFieldsMap::initialize() {
    76   int offset;
    76   int offset = reflect_ConstantPool::oop_offset();
    77   offset = java_lang_Throwable::get_backtrace_offset();
       
    78   _filtered_fields->append(new FilteredField(SystemDictionary::Throwable_klass(), offset));
       
    79   offset = reflect_ConstantPool::oop_offset();
       
    80   _filtered_fields->append(new FilteredField(SystemDictionary::reflect_ConstantPool_klass(), offset));
    77   _filtered_fields->append(new FilteredField(SystemDictionary::reflect_ConstantPool_klass(), offset));
    81   offset = reflect_UnsafeStaticFieldAccessorImpl::base_offset();
    78   offset = reflect_UnsafeStaticFieldAccessorImpl::base_offset();
    82   _filtered_fields->append(new FilteredField(SystemDictionary::reflect_UnsafeStaticFieldAccessorImpl_klass(), offset));
    79   _filtered_fields->append(new FilteredField(SystemDictionary::reflect_UnsafeStaticFieldAccessorImpl_klass(), offset));
    83 }
    80 }
    84 
    81