Skip to content
Snippets Groups Projects
Forked from redox-os / gcc
Source project has a limited visibility.
  • tromey's avatar
    743d66d0
    PR libgcj/12016, PR libgcj/18405, PR libgcj/17738: · 743d66d0
    tromey authored
    	* java/lang/Package.java (getPackages): Use VMClassLoader when
    	appropriate.
    	(getPackage): Likewise.
    	* prims.cc (_Jv_CreateJavaVM): Call
    	_Jv_RegisterBootstrapPackages.
    	* include/jvm.h (_Jv_RegisterBootstrapPackages): Declare.
    	* java/lang/VMClassLoader.java (getPackage): Rewrote.
    	(getPackages): Likewise.
    	(definedPackages): New field.
    	(definePackageForNative): New method.
    	* java/lang/Class.h (_Jv_FindClassInCache): Updated.
    	* java/lang/natVMClassLoader.cc (loadClass): Updated.
    	* defineclass.cc (handleClassBegin): Use
    	ClassLoader.findLoadedClass.
    	* java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
    	Rewrote.
    	(struct _Jv_LoaderInfo): Removed.
    	(initiated_classes): Likewise.
    	(_Jv_UnregisterClass): Don't use initiated_classes.
    	(_Jv_FindClassInCache): Likewise.  Removed 'loader' argument.
    	(_Jv_FindClass): Register classes found during boostrap.
    	(BOOTSTRAP_CLASS_LIST_SIZE): New define.
    	(bootstrap_class_list): New global.
    	(bootstrap_index): Likewise.
    	(_Jv_RegisterBootstrapPackages): New function.
    	* gnu/gcj/runtime/natVMClassLoader.cc (findClass): Call
    	definePackageForNative.
    	(findClass): Updated.
    	* gnu/gcj/runtime/VMClassLoader.java (definePackageForNative):
    	New method.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93155 138bc75d-0d04-0410-961f-82ee72b054a4
    743d66d0
    History
    PR libgcj/12016, PR libgcj/18405, PR libgcj/17738:
    tromey authored
    	* java/lang/Package.java (getPackages): Use VMClassLoader when
    	appropriate.
    	(getPackage): Likewise.
    	* prims.cc (_Jv_CreateJavaVM): Call
    	_Jv_RegisterBootstrapPackages.
    	* include/jvm.h (_Jv_RegisterBootstrapPackages): Declare.
    	* java/lang/VMClassLoader.java (getPackage): Rewrote.
    	(getPackages): Likewise.
    	(definedPackages): New field.
    	(definePackageForNative): New method.
    	* java/lang/Class.h (_Jv_FindClassInCache): Updated.
    	* java/lang/natVMClassLoader.cc (loadClass): Updated.
    	* defineclass.cc (handleClassBegin): Use
    	ClassLoader.findLoadedClass.
    	* java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
    	Rewrote.
    	(struct _Jv_LoaderInfo): Removed.
    	(initiated_classes): Likewise.
    	(_Jv_UnregisterClass): Don't use initiated_classes.
    	(_Jv_FindClassInCache): Likewise.  Removed 'loader' argument.
    	(_Jv_FindClass): Register classes found during boostrap.
    	(BOOTSTRAP_CLASS_LIST_SIZE): New define.
    	(bootstrap_class_list): New global.
    	(bootstrap_index): Likewise.
    	(_Jv_RegisterBootstrapPackages): New function.
    	* gnu/gcj/runtime/natVMClassLoader.cc (findClass): Call
    	definePackageForNative.
    	(findClass): Updated.
    	* gnu/gcj/runtime/VMClassLoader.java (definePackageForNative):
    	New method.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93155 138bc75d-0d04-0410-961f-82ee72b054a4