Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- vm/jato.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/vm/jato.c b/vm/jato.c index e2d7c66..a437082 100644 --- a/vm/jato.c +++ b/vm/jato.c @@ -546,6 +546,14 @@ static void native_vmthread_start(struct vm_object *vmthread, jlong stacksize) vm_thread_start(vmthread); } +static void native_vmobject_notify_all(struct vm_object *obj) +{ + vm_monitor_notify_all(&obj->monitor); + + if (exception_occurred()) + throw_from_native(sizeof(obj)); +} + static struct vm_native natives[] = { DEFINE_NATIVE("gnu/classpath/VMStackWalker", "getClassContext", &native_vmstackwalker_getclasscontext), DEFINE_NATIVE("gnu/classpath/VMSystemProperties", "preInit", &native_vmsystemproperties_preinit), @@ -559,6 +567,7 @@ static struct vm_native natives[] = { DEFINE_NATIVE("java/lang/VMClassLoader", "getPrimitiveClass", &native_vmclassloader_getprimitiveclass), DEFINE_NATIVE("java/io/VMFile", "isDirectory", &native_vmfile_is_directory), DEFINE_NATIVE("java/lang/VMObject", "clone", &native_vmobject_clone), + DEFINE_NATIVE("java/lang/VMObject", "notifyAll", &native_vmobject_notify_all), DEFINE_NATIVE("java/lang/VMObject", "getClass", &native_vmobject_getclass), DEFINE_NATIVE("java/lang/VMRuntime", "exit", &native_vmruntime_exit), DEFINE_NATIVE("java/lang/VMRuntime", "mapLibraryName", &native_vmruntime_maplibraryname), -- 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