10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "ci/ciField.hpp"
27 #include "ci/ciInstanceKlass.hpp"
28 #include "ci/ciUtilities.hpp"
29 #include "classfile/systemDictionary.hpp"
30 #include "gc_interface/collectedHeap.inline.hpp"
31 #include "interpreter/linkResolver.hpp"
32 #include "memory/universe.inline.hpp"
33 #include "oops/oop.inline.hpp"
34 #include "runtime/fieldDescriptor.hpp"
35
36 // ciField
37 //
38 // This class represents the result of a field lookup in the VM.
39 // The lookup may not succeed, in which case the information in
40 // the ciField will be incomplete.
41
42 // The ciObjectFactory cannot create circular data structures in one query.
43 // To avoid vicious circularities, we initialize ciField::_type to NULL
44 // for reference types and derive it lazily from the ciField::_signature.
45 // Primitive types are eagerly initialized, and basic layout queries
46 // can succeed without initialization, using only the BasicType of the field.
47
48 // Notes on bootstrapping and shared CI objects: A field is shared if and
49 // only if it is (a) non-static and (b) declared by a shared instance klass.
50 // This allows non-static field lists to be cached on shared types.
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "ci/ciField.hpp"
27 #include "ci/ciInstanceKlass.hpp"
28 #include "ci/ciUtilities.hpp"
29 #include "classfile/systemDictionary.hpp"
30 #include "gc/shared/collectedHeap.inline.hpp"
31 #include "interpreter/linkResolver.hpp"
32 #include "memory/universe.inline.hpp"
33 #include "oops/oop.inline.hpp"
34 #include "runtime/fieldDescriptor.hpp"
35
36 // ciField
37 //
38 // This class represents the result of a field lookup in the VM.
39 // The lookup may not succeed, in which case the information in
40 // the ciField will be incomplete.
41
42 // The ciObjectFactory cannot create circular data structures in one query.
43 // To avoid vicious circularities, we initialize ciField::_type to NULL
44 // for reference types and derive it lazily from the ciField::_signature.
45 // Primitive types are eagerly initialized, and basic layout queries
46 // can succeed without initialization, using only the BasicType of the field.
47
48 // Notes on bootstrapping and shared CI objects: A field is shared if and
49 // only if it is (a) non-static and (b) declared by a shared instance klass.
50 // This allows non-static field lists to be cached on shared types.
|