natClassLoader.cc (_Jv_RegisterInitiatingLoader): Check loading constraints.
authorTom Tromey <tromey@redhat.com>
Thu, 13 Mar 2008 16:43:54 +0000 (16:43 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Thu, 13 Mar 2008 16:43:54 +0000 (16:43 +0000)
commit2599b56f41927c9122e457bb811dc89a10164d2b
tree3e00c86cfe961bb8b754069406dbd928045c1a31
parent5f5f0635f1921f40de45c6783fe0c4e9b4c0d1ba
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
libjava/ChangeLog
libjava/classpath/lib/java/lang/ClassLoader$AnnotationsKey.class
libjava/classpath/lib/java/lang/ClassLoader.class
libjava/include/jvm.h
libjava/java/lang/ClassLoader.h
libjava/java/lang/ClassLoader.java
libjava/java/lang/natClassLoader.cc
libjava/link.cc