diff options
| author | Tom Tromey <tromey@redhat.com> | 2008-03-13 16:43:54 +0000 |
|---|---|---|
| committer | Tom Tromey <tromey@gcc.gnu.org> | 2008-03-13 16:43:54 +0000 |
| commit | 2599b56f41927c9122e457bb811dc89a10164d2b (patch) | |
| tree | 3e00c86cfe961bb8b754069406dbd928045c1a31 /libjava/include | |
| parent | 5f5f0635f1921f40de45c6783fe0c4e9b4c0d1ba (diff) | |
| download | gcc-2599b56f41927c9122e457bb811dc89a10164d2b.zip gcc-2599b56f41927c9122e457bb811dc89a10164d2b.tar.gz gcc-2599b56f41927c9122e457bb811dc89a10164d2b.tar.bz2 | |
natClassLoader.cc (_Jv_RegisterInitiatingLoader): Check loading constraints.
* java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
Check loading constraints.
(_Jv_CheckOrCreateLoadingConstraint): New function.
* java/lang/ClassLoader.java (loadingConstraints): New field.
* link.cc (_Jv_Linker::find_field): Use
_Jv_CheckOrCreateLoadingConstraint.
(_Jv_Linker::check_loading_constraints): New function.
(_Jv_Linker::resolve_method_entry): Use
check_loading_constraints.
(_Jv_Linker::append_partial_itable): Likewise.
(_Jv_Linker::layout_vtable_methods): Likewise.
* include/jvm.h (_Jv_Linker::check_loading_constraints): Declare.
(_Jv_CheckOrCreateLoadingConstraint): Declare.
From-SVN: r133172
Diffstat (limited to 'libjava/include')
| -rw-r--r-- | libjava/include/jvm.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h index 8484754..64cd6b5 100644 --- a/libjava/include/jvm.h +++ b/libjava/include/jvm.h @@ -1,6 +1,6 @@ // jvm.h - Header file for private implementation information. -*- c++ -*- -/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation +/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation This file is part of libgcj. @@ -265,6 +265,7 @@ private: jclass, jclass *); static _Jv_Field *find_field(jclass, jclass, jclass *, _Jv_Utf8Const *, _Jv_Utf8Const *); + static void check_loading_constraints (_Jv_Method *, jclass, jclass); static void prepare_constant_time_tables(jclass); static jshort get_interfaces(jclass, _Jv_ifaces *); static void link_symbol_table(jclass); @@ -557,6 +558,9 @@ extern void _Jv_CallAnyMethodA (jobject obj, jboolean is_jni_call = true, jclass iface = NULL); +extern void _Jv_CheckOrCreateLoadingConstraint (jclass, + java::lang::ClassLoader *); + extern jobject _Jv_NewMultiArray (jclass, jint ndims, jint* dims) __attribute__((__malloc__)); |
