This field holds a reference to instance of java.lang.ClassLoader. It points to the classloader which loaded the class.
Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- include/vm/class.h | 4 ++++ vm/classloader.c | 2 ++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/vm/class.h b/include/vm/class.h index e8f3483..54e49b2 100644 --- a/include/vm/class.h +++ b/include/vm/class.h @@ -79,6 +79,10 @@ struct vm_class { struct vm_class *array_element_class; }; + /* Reference to a classloader which loaded this class. Can be + NULL for default classloader. */ + struct vm_object *classloader; + void *itable[VM_ITABLE_SIZE]; }; diff --git a/vm/classloader.c b/vm/classloader.c index 18a1322..577837b 100644 --- a/vm/classloader.c +++ b/vm/classloader.c @@ -522,6 +522,8 @@ struct vm_class *classloader_load(const char *class_name) pthread_mutex_lock(&classloader_mutex); + vmc->classloader = NULL; + classes[class_index].loaded = true; classes[class_index].class = vmc; -- 1.6.0.6 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel