Re: [Sablevm-developer] Quick message...
Brought to you by:
egagnon
From: Archie C. <ar...@de...> - 2002-08-19 05:15:04
|
Etienne M. Gagnon writes: > I've compiled the DoublePrint class, and ran it with sablevm (1.0.3) > without any problem. It prints "HelloWorld". Try the sablevm-debug > version. (I've attached the .class file i've compiled [I had lost > yours]). Thanks Etienne- I found the problem. There is a simple bug in the keeping of the linked list of native libraries associated with a ClassLoader. The patch below fixes it for me. I still have no idea how this can work on Linux but not FreeBSD... Cheers, -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com --- sablevm-1.0.3/src/libsablevm/java_lang_Runtime.c Tue Aug 6 03:27:22 2002 +++ sablevm-1.0.3/src/libsablevm/java_lang_Runtime.c Sun Aug 18 21:56:25 2002 @@ -254,6 +254,9 @@ (*(class_loader_info->native_library_list_tail))->name = filename; (*(class_loader_info->native_library_list_tail))->handle = handle; + class_loader_info->native_library_list_tail = + &(*(class_loader_info->native_library_list_tail))->next; + result = 1; end: |