[kaffe] CVS kaffe (guilhem): Various fixes.

2004-07-23 Thread Kaffe CVS
PatchSet 5001 
Date: 2004/07/23 13:45:13
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Various fixes.

* po/fr.po: Updated translation.

* WHATSNEW: Added some entries for Kaffe 1.1.5.

* m4/gwqt.m4: Use AC_PATH_PROG instead of AC_CHECK_PROG to discover
the real path of moc and uic.

* configure.ac: Fixed BOEHMGC_SPECIFIC_FLAGS.

* configure: Regenerated.

* developers/boehm-with-kaffe.patch: New file to reflect specific
kaffe changes to the Boehm-Weiser GC.

* kaffe/kaffevm/ksem.c: Added an assertion checking.

* kaffe/kaffevm/boehm-gc/Makefile.am
(libkaffegc_la_SOURCES): Added pthread_stop_world.c.

* kaffe/kaffevm/boehm-gc/Makefile.in: Regenerated.

* libraries/javalib/all.files: Swapped JDesktopPane.java and
JLayeredPane.java.

Members: 
ChangeLog:1.2561-1.2562 
WHATSNEW:1.34-1.35 
configure:1.363-1.364 
configure.ac:1.61-1.62 
developers/boehm-with-kaffe.patch:INITIAL-1.1 
kaffe/kaffevm/ksem.c:1.4-1.5 
kaffe/kaffevm/boehm-gc/Makefile.am:1.2-1.3 
kaffe/kaffevm/boehm-gc/Makefile.in:1.5-1.6 
libraries/javalib/all.files:1.3-1.4 
m4/gwqt.m4:1.1-1.2 
po/fr.po:1.5-1.6 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2561 kaffe/ChangeLog:1.2562
--- kaffe/ChangeLog:1.2561  Fri Jul 23 01:54:12 2004
+++ kaffe/ChangeLog Fri Jul 23 13:45:13 2004
@@ -1,3 +1,29 @@
+2004-07-23  Guilhem Lavaux [EMAIL PROTECTED]
+
+   * po/fr.po: Updated translation.
+
+   * WHATSNEW: Added some entries for Kaffe 1.1.5.
+
+   * m4/gwqt.m4: Use AC_PATH_PROG instead of AC_CHECK_PROG to discover
+   the real path of moc and uic.
+
+   * configure.ac: Fixed BOEHMGC_SPECIFIC_FLAGS.
+
+   * configure: Regenerated.
+
+   * developers/boehm-with-kaffe.patch: New file to reflect specific
+   kaffe changes to the Boehm-Weiser GC.
+
+   * kaffe/kaffevm/ksem.c: Added an assertion checking.
+   
+   * kaffe/kaffevm/boehm-gc/Makefile.am
+   (libkaffegc_la_SOURCES): Added pthread_stop_world.c.
+
+   * kaffe/kaffevm/boehm-gc/Makefile.in: Regenerated.
+
+   * libraries/javalib/all.files: Swapped JDesktopPane.java and
+   JLayeredPane.java.
+
 2004-07-23  Jim Huang  [EMAIL PROTECTED]
 
* po/kaffe.pot,
@@ -1189,7 +1215,11 @@
 libraries/javalib/Makefile.am,
 libraries/javalib/Makefile.in,
 m4/libtool.m4:
-   Regeenrated.
+   Regenerated.
+
+2004-07-21  Guilhem Lavaux [EMAIL PROTECTED]
+
+   * WHATSNEW: Added some news to Kaffe 1.1.5.
 
 2004-07-21  Guilhem Lavaux [EMAIL PROTECTED]
 
Index: kaffe/WHATSNEW
diff -u kaffe/WHATSNEW:1.34 kaffe/WHATSNEW:1.35
--- kaffe/WHATSNEW:1.34 Sat Jul 10 02:48:04 2004
+++ kaffe/WHATSNEW  Fri Jul 23 13:45:15 2004
@@ -16,6 +16,11 @@
 * KJC fixes.
 * Added GNU EmbbededWindow extension from GNU Classpath.
   * gcjwebplugin is known to work with the extension.
+* New experimental Boehm-Weiser garbage collector.
+* DNSJava merged in.
+* Jessie merged in.
+* JZLib merged in.
+* GNU Classpath's implementation of Swing has been merged.
 
 What's New in Kaffe 1.1.3
 --
Index: kaffe/configure
diff -u kaffe/configure:1.363 kaffe/configure:1.364
--- kaffe/configure:1.363   Thu Jul 22 19:03:18 2004
+++ kaffe/configure Fri Jul 23 13:45:15 2004
@@ -27402,7 +27402,7 @@
BOEHMGC_SPECIFIC_FLAGS=$BOEHMGC_SPECIFIC_FLAGS 
-DGC_LINUX_THREADS
   fi
   if test $ac_cv_gnu_library_version -ge 2003; then
-   BOEHMGC_SPECIFIC_FLAGS=$$BOEHMGC_SPECIFIC_FLAGS 
-DGC_PTHREADS
+   BOEHMGC_SPECIFIC_FLAGS=$BOEHMGC_SPECIFIC_FLAGS 
-DGC_PTHREADS
   fi
fi
;;
@@ -52785,29 +52785,34 @@
 set dummy moc; ac_word=$2
 echo $as_me:$LINENO: checking for $ac_word 5
 echo $ECHO_N checking for $ac_word... $ECHO_C 6
-if test ${ac_cv_prog_MOC+set} = set; then
+if test ${ac_cv_path_MOC+set} = set; then
   echo $ECHO_N (cached) $ECHO_C 6
 else
-  if test -n $MOC; then
-  ac_cv_prog_MOC=$MOC # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
+  case $MOC in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_MOC=$MOC # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_dummy=$PATH:$QTDIR/bin
+for as_dir in $as_dummy
 do
   IFS=$as_save_IFS
   test -z $as_dir  as_dir=.
   for ac_exec_ext in '' $ac_executable_extensions; do
   if $as_executable_p $as_dir/$ac_word$ac_exec_ext; then
-ac_cv_prog_MOC=moc
+ac_cv_path_MOC=$as_dir/$ac_word$ac_exec_ext
 echo $as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext 5
 break 2
   fi
 done
 done
 
+  ;;
+esac
 fi
-fi
-MOC=$ac_cv_prog_MOC
+MOC=$ac_cv_path_MOC
+
 if test -n 

Re: [kaffe] CVS kaffe (guilhem): Various fixes.

2003-09-01 Thread Guilhem Lavaux
Timothy Stack wrote:

PatchSet 4001 
Date: 2003/08/31 17:16:47
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Various fixes.

Noticeable changes:
Reimplementation of deleteOnExit (missing in classpath)
   

The test case for this is not checked in (DeleteFile.java).

 

Removed SoInterrupt because it is wrong.
   

Why is it wrong?  Improving test cases is desired over removing them.

tim
 

SoInterrupt basically tests whether IO operations are interruptible. But 
this should never happen according to the
Java Spec and JDK 1.4.2 behaviour. What could be tested instead is 
whether the IO operation is not interruptible but
anyway that was not the objective of the test. In kaffe, IO operations 
were interruptible and that was also wrong, so
I fixed this at least for net receive operations. If someone (it could 
be me) has some spare time he can rewrite a new
test for that particular behaviour...

Cheers,
Guilhem.
___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] CVS kaffe (guilhem): Various fixes.

2003-08-31 Thread Kaffe CVS
PatchSet 4001 
Date: 2003/08/31 17:16:47
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Various fixes.

Noticeable changes:
Reimplementation of deleteOnExit (missing in classpath)
Removed SoInterrupt because it is wrong.
Implemented fsync for pthreads.

Members: 
ChangeLog:1.1597-1.1598 
include/Makefile.am:1.47-1.48 
include/Makefile.in:1.119-1.120 
kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.14-1.15 
libraries/clib/io/File.c:1.20-1.21 
libraries/clib/io/FileDescriptor.c:1.5-1.6 
libraries/clib/net/NetworkInterface.c:1.2-1.3 
libraries/clib/net/PlainDatagramSocketImpl.c:1.27-1.28 
libraries/clib/net/PlainSocketImpl.c:1.31-1.32 
libraries/javalib/java/io/File.java:1.35-1.36 
libraries/javalib/java/lang/Runtime.java:1.25-1.26 
libraries/javalib/java/lang/Thread.java:1.42-1.43 
test/regression/Makefile.am:1.81-1.82 
test/regression/Makefile.in:1.134-1.135 
test/regression/SoInterrupt.java:1.5-1.6(DEAD) 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1597 kaffe/ChangeLog:1.1598
--- kaffe/ChangeLog:1.1597  Sat Aug 30 23:57:08 2003
+++ kaffe/ChangeLog Sun Aug 31 17:16:47 2003
@@ -1,3 +1,36 @@
+2003-08-31  Guilhem Lavaux [EMAIL PROTECTED]
+
+   * kaffe/kaffevm/systems/unix-pthreads/syscalls.c:
+   (jthreadedFSync) added.
+   (Kaffe_SystemCallInterface) added jthreadedFSync.
+
+   * libraries/clib/net/PlainDatagramSocketImpl.c:
+   (java_net_PlainDatagramSocketImpl_receive) check if pkt is NULL
+   and throw NullPointerException if it is the case.
+   Changed the way EINTR is handled (it must be ignored).
+   ETIMEDOUT throws a better exception with bytesTransferred set to
+   the right value.
+   
+   * libraries/clib/net/PlainSocketImpl.c:
+   (java_net_PlainSocketImpl_receive) see above for the changed behaviour.
+   (java_net_PlainSocketImpl_accept) EINTR is now ignored.
+
+   * libraries/clib/io/File.c:
+   (java_io_File_listInternal) check whether the pointer is null.
+
+   * libraries/clib/io/FileDescriptor.c:
+   (getFileSize) don't return an error if there isn't.
+
+   * include/Makefile.am:
+   (NOINSTALL_DERIVED_HDRS) added java_io_InterruptedIOException.h
+
+   * test/regression/SoInterrupt.java: removed. This test was a
+   non-sense from the beginning to the end.
+
+   * test/regression/Makefile.am: removed SoInterrupt.java
+
+   * test/regression/Makefile.in: regenerated.
+
 2003-08-30  Timothy S. Stack [EMAIL PROTECTED]
 
* include/jni.h, include/jvmpi.h:
Index: kaffe/include/Makefile.am
diff -u kaffe/include/Makefile.am:1.47 kaffe/include/Makefile.am:1.48
--- kaffe/include/Makefile.am:1.47  Sat Aug 30 14:18:23 2003
+++ kaffe/include/Makefile.am   Sun Aug 31 17:16:48 2003
@@ -47,6 +47,7 @@
java_io_FileInputStream.h \
java_io_FileOutputStream.h \
java_io_InputStream.h \
+   java_io_InterruptedIOException.h \
java_io_ObjectInputStream.h \
java_io_PrintStream.h \
java_io_RandomAccessFile.h \
Index: kaffe/include/Makefile.in
diff -u kaffe/include/Makefile.in:1.119 kaffe/include/Makefile.in:1.120
--- kaffe/include/Makefile.in:1.119 Sat Aug 30 14:18:23 2003
+++ kaffe/include/Makefile.in   Sun Aug 31 17:16:48 2003
@@ -282,6 +282,7 @@
java_io_FileInputStream.h \
java_io_FileOutputStream.h \
java_io_InputStream.h \
+   java_io_InterruptedIOException.h \
java_io_ObjectInputStream.h \
java_io_PrintStream.h \
java_io_RandomAccessFile.h \
Index: kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c
diff -u kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.14 
kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.15
--- kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.14   Fri Aug  8 14:38:25 
2003
+++ kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.cSun Aug 31 17:16:48 
2003
@@ -249,6 +249,17 @@
 }
 
 static int
+jthreadedFSync(int fd)
+{
+   int rc = 0;
+   
+   if (fsync(fd) == -1) {
+   rc = errno;
+   }
+   return (rc);
+}
+
+static int
 jthreadedMkdir(const char *path, int mode)
 {
int rc = 0;
@@ -880,6 +891,7 @@
 jthreadedFStat,
 jthreadedStat,
 jthreadedFTruncate,
+jthreadedFSync,
 jthreadedMkdir,
 jthreadedRmdir,
 jthreadedRename,
Index: kaffe/libraries/clib/io/File.c
diff -u kaffe/libraries/clib/io/File.c:1.20 kaffe/libraries/clib/io/File.c:1.21
--- kaffe/libraries/clib/io/File.c:1.20 Sat Aug 30 14:18:24 2003
+++ kaffe/libraries/clib/io/File.c  Sun Aug 31 17:16:49 2003
@@ -272,7 +272,7 @@
 mentry = dirlist;
 dirlist = mentry-next;
 unhand_array(array)-body[i] =
-  (Hjava_lang_Object*)stringC2Java(mentry-name);
+  (Hjava_lang_Object*)checkPtr(stringC2Java(mentry-name));
 /* if allocation fails, continue freeing 

Re: [kaffe] CVS kaffe (guilhem): Various fixes.

2003-08-31 Thread Timothy Stack
 
 PatchSet 4001 
 Date: 2003/08/31 17:16:47
 Author: guilhem
 Branch: HEAD
 Tag: (none) 
 Log:
 Various fixes.
 
 Noticeable changes:
 Reimplementation of deleteOnExit (missing in classpath)

The test case for this is not checked in (DeleteFile.java).

 Removed SoInterrupt because it is wrong.

Why is it wrong?  Improving test cases is desired over removing them.

tim

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe