[kaffe] CVS kaffe (guilhem): Fixed stack size detection on some linux architectures.

2004-06-04 Thread Kaffe CVS
PatchSet 4823 
Date: 2004/06/04 20:28:14
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Fixed stack size detection on some linux architectures.

* config/m68k/linux/md.h,
config/powerpc/linux/md.h: Implemented mdGetStackSize().

* config/i386/linux/md.h: Cleaned up as soft limits are always
the lower bound in the Linux kernel.

Members: 
ChangeLog:1.2391->1.2392 
config/i386/linux/md.h:1.12->1.13 
config/m68k/linux/md.h:1.8->1.9 
config/powerpc/linux/md.h:1.5->1.6 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2391 kaffe/ChangeLog:1.2392
--- kaffe/ChangeLog:1.2391  Fri Jun  4 19:32:32 2004
+++ kaffe/ChangeLog Fri Jun  4 20:28:14 2004
@@ -1,5 +1,13 @@
 2004-06-04  Guilhem Lavaux <[EMAIL PROTECTED]>
 
+   * config/m68k/linux/md.h,
+   config/powerpc/linux/md.h: Implemented mdGetStackSize().
+
+   * config/i386/linux/md.h: Cleaned up as soft limits are always
+   the lower bound in the Linux kernel.
+
+2004-06-04  Guilhem Lavaux <[EMAIL PROTECTED]>
+
* po/fr.po, po/kaffe.pot: New files.
 
* po/LINGUAS: Added fr.
Index: kaffe/config/i386/linux/md.h
diff -u kaffe/config/i386/linux/md.h:1.12 kaffe/config/i386/linux/md.h:1.13
--- kaffe/config/i386/linux/md.h:1.12   Sun May  9 14:20:12 2004
+++ kaffe/config/i386/linux/md.hFri Jun  4 20:28:15 2004
@@ -83,10 +83,12 @@
 {
   struct rlimit rl;
 
+  // The soft limit is always the lower limit.
+  // Use it by default.
   if (getrlimit(RLIMIT_STACK, &rl) < 0)
 return 0;
   else
-return (rl.rlim_max >= RLIM_INFINITY) ? rl.rlim_cur : rl.rlim_max;
+return rl.rlim_cur;
 }
 #endif
 
Index: kaffe/config/m68k/linux/md.h
diff -u kaffe/config/m68k/linux/md.h:1.8 kaffe/config/m68k/linux/md.h:1.9
--- kaffe/config/m68k/linux/md.h:1.8Wed Apr 28 17:03:55 2004
+++ kaffe/config/m68k/linux/md.hFri Jun  4 20:28:16 2004
@@ -40,6 +40,23 @@
 extern void init_md(void);
 #defineINIT_MD()   init_md()
 
+#if defined(HAVE_GETRLIMIT)
+#define KAFFEMD_STACKSIZE
+
+static inline rlim_t mdGetStackSize(void)
+{
+  struct rlimit rl;
+
+  // The soft limit is always the lower limit.
+  // Use it by default.
+  if (getrlimit(RLIMIT_STACK, &rl) < 0)
+return 0;
+  else
+return rl.rlim_cur;
+}
+#endif
+
+
 /*
  * sysdepCallMethod supports:
  *
Index: kaffe/config/powerpc/linux/md.h
diff -u kaffe/config/powerpc/linux/md.h:1.5 kaffe/config/powerpc/linux/md.h:1.6
--- kaffe/config/powerpc/linux/md.h:1.5 Tue Apr 27 18:25:17 2004
+++ kaffe/config/powerpc/linux/md.h Fri Jun  4 20:28:16 2004
@@ -28,4 +28,21 @@
 #define SIGNAL_ARGS(sig, sc) int sig
 #undef HAVE_SIGALTSTACK
 
+#if defined(HAVE_GETRLIMIT)
+#define KAFFEMD_STACKSIZE
+
+static inline rlim_t mdGetStackSize(void)
+{
+  struct rlimit rl;
+
+  // The soft limit is always the lower limit.
+  // Use it by default.
+  if (getrlimit(RLIMIT_STACK, &rl) < 0)
+return 0;
+  else
+return rl.rlim_cur;
+}
+#endif
+
+
 #endif

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


[kaffe] CVS kaffe (guilhem): Added some i18n support to kaffe-bin.

2004-06-04 Thread Kaffe CVS
PatchSet 4822 
Date: 2004/06/04 19:32:32
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Added some i18n support to kaffe-bin.

   * po/fr.po, po/kaffe.pot: New files.

* po/LINGUAS: Added fr.

* po/POTFILES.in: Added kaffe/kaffe/main.c

* kaffe/kaffe/main.c: gettextized messages. Initialize message
locales.

* configure.ac: Initialize the locale path for messages. New C
define: KAFFE_LOCALEDIR.

* configure, config/config.h.in: Regenerated.

Members: 
ChangeLog:1.2390->1.2391 
configure:1.326->1.327 
configure.ac:1.25->1.26 
config/config.h.in:1.102->1.103 
kaffe/kaffe/main.c:1.53->1.54 
po/LINGUAS:1.1->1.2 
po/POTFILES.in:1.1->1.2 
po/fr.po:INITIAL->1.1 
po/kaffe.pot:INITIAL->1.1 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2390 kaffe/ChangeLog:1.2391
--- kaffe/ChangeLog:1.2390  Fri Jun  4 17:45:18 2004
+++ kaffe/ChangeLog Fri Jun  4 19:32:32 2004
@@ -1,3 +1,19 @@
+2004-06-04  Guilhem Lavaux <[EMAIL PROTECTED]>
+
+   * po/fr.po, po/kaffe.pot: New files.
+
+   * po/LINGUAS: Added fr.
+
+   * po/POTFILES.in: Added kaffe/kaffe/main.c
+
+   * kaffe/kaffe/main.c: gettextized messages. Initialize message
+   locales.
+
+   * configure.ac: Initialize the locale path for messages. New C
+   define: KAFFE_LOCALEDIR.
+   
+   * configure, config/config.h.in: Regenerated.
+
 2004-06-04  Dalibor Topic  <[EMAIL PROTECTED]>
 
* libraries/javalib/java/lang/SecurityManager.java:
Index: kaffe/configure
diff -u kaffe/configure:1.326 kaffe/configure:1.327
--- kaffe/configure:1.326   Thu Jun  3 16:21:26 2004
+++ kaffe/configure Fri Jun  4 19:32:34 2004
@@ -25840,6 +25840,14 @@
 
 
 
+KAFFE_LOCALEDIR="${datadir}/locale"
+eval KAFFE_LOCALEPATH=$KAFFE_LOCALEDIR
+
+cat >>confdefs.h <<_ACEOF
+#define KAFFE_LOCALEDIR "$KAFFE_LOCALEPATH"
+_ACEOF
+
+
 
 
 
Index: kaffe/configure.ac
diff -u kaffe/configure.ac:1.25 kaffe/configure.ac:1.26
--- kaffe/configure.ac:1.25 Thu Jun  3 16:21:37 2004
+++ kaffe/configure.ac  Fri Jun  4 19:32:36 2004
@@ -250,6 +250,10 @@
 AM_GNU_GETTEXT([external])
 AM_GNU_GETTEXT_VERSION(0.14.1)
 
+KAFFE_LOCALEDIR="${datadir}/locale"
+eval KAFFE_LOCALEPATH=$KAFFE_LOCALEDIR
+AC_DEFINE_UNQUOTED(KAFFE_LOCALEDIR, "$KAFFE_LOCALEPATH", [Full path to the directory 
containing kaffe's locales])
+
 dnl =
 dnl Do we need underscore?
 dnl -
Index: kaffe/config/config.h.in
diff -u kaffe/config/config.h.in:1.102 kaffe/config/config.h.in:1.103
--- kaffe/config/config.h.in:1.102  Thu Jun  3 16:21:41 2004
+++ kaffe/config/config.h.inFri Jun  4 19:32:37 2004
@@ -661,6 +661,9 @@
 /* Define to 1 if `in6addr_loopback' is declared by  */
 #undef IN6ADDR_LOOPBACK_DECLARED
 
+/* Full path to the directory containing kaffe's locales */
+#undef KAFFE_LOCALEDIR
+
 /* Define if signal handlers must be reset upon delivery */
 #undef KAFFE_SIGNAL_ONE_SHOT
 
Index: kaffe/kaffe/kaffe/main.c
diff -u kaffe/kaffe/kaffe/main.c:1.53 kaffe/kaffe/kaffe/main.c:1.54
--- kaffe/kaffe/kaffe/main.c:1.53   Wed May 26 21:01:53 2004
+++ kaffe/kaffe/kaffe/main.cFri Jun  4 19:32:37 2004
@@ -35,6 +35,13 @@
 #include "methodCache.h"
 #include "external.h"
 
+#if defined(HAVE_GETTEXT)
+#include 
+#define _(T) gettext(T)
+#else
+#define _(T) (T)
+#endif
+
 #if defined(KAFFE_PROFILER)
 extern int profFlag;
 #endif
@@ -71,6 +78,13 @@
int farg;
const char* cp;
 
+#if defined(HAVE_GETTEXT)
+   setlocale(LC_MESSAGES, "");
+   setlocale(LC_CTYPE, "");
+   bindtextdomain(PACKAGE, KAFFE_LOCALEDIR);
+   textdomain(PACKAGE);
+#endif
+
 #if defined(MAIN_MD)
/* Machine specific main first */
MAIN_MD;
@@ -419,7 +433,7 @@
 
/* Get longer buffer FIXME:  free the old one */
if ((newcpath = malloc(cpathlength)) == NULL) {
-   fprintf(stderr,  "Error: out of memory.\n");
+   fprintf(stderr,  _("Error: out of memory.\n"));
exit(1);
}
 
@@ -446,7 +460,7 @@
 
/* Get longer buffer FIXME:  free the old one */
if ((newbootcpath = malloc(bootcpathlength)) == NULL) {
-   fprintf(stderr,  "Error: out of memory.\n");
+   fprintf(stderr,  _("Error: out of memory.\n"));
exit(1);
}
 
@@ -471,7 +485,7 @@
 
/* Get longer buffer FIXME:  free the old one */
if ((newbootcpath = malloc(bootcpathlength)) == NULL) {
-   fprintf(stderr,  "Error: out of memory.\n");
+   fprintf(stderr, 

[kaffe] CVS kaffe (dalibor): Resynced with GNU Classpath: java/lang/SecurityManager.java

2004-06-04 Thread Kaffe CVS
PatchSet 4821 
Date: 2004/06/04 17:45:18
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath: java/lang/SecurityManager.java

2004-06-04  Dalibor Topic  <[EMAIL PROTECTED]>

* libraries/javalib/java/lang/SecurityManager.java:
Resynced with GNU Classpath.

2004-06-04  Casey Marshall <[EMAIL PROTECTED]>

* java/lang/SecurityManager.java
(getSecurityContext): return 'AccessController.getContext'.
(checkPermission(Permission)): use AccessController.
(checkPermission(Permission,Object)): likewise.
(checkRead): likewise.
(checkConnect): likewise.

Members: 
ChangeLog:1.2389->1.2390 
libraries/javalib/java/lang/SecurityManager.java:1.20->1.21 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2389 kaffe/ChangeLog:1.2390
--- kaffe/ChangeLog:1.2389  Thu Jun  3 22:25:59 2004
+++ kaffe/ChangeLog Fri Jun  4 17:45:18 2004
@@ -1,6 +1,20 @@
+2004-06-04  Dalibor Topic  <[EMAIL PROTECTED]>
+
+   * libraries/javalib/java/lang/SecurityManager.java:
+   Resynced with GNU Classpath.
+
+   2004-06-04  Casey Marshall <[EMAIL PROTECTED]>
+
+* java/lang/SecurityManager.java
+(getSecurityContext): return `AccessController.getContext'.
+(checkPermission(Permission)): use AccessController.
+(checkPermission(Permission,Object)): likewise.
+(checkRead): likewise.
+(checkConnect): likewise.
+
 2004-06-03  Dalibor Topic  <[EMAIL PROTECTED]>
 
-libraries/javalib/java/security/AccessControlContext.java,
+* libraries/javalib/java/security/AccessControlContext.java,
 libraries/javalib/java/security/AccessController.java,
 libraries/javalib/java/security/IntersectingDomainCombiner.java,
 libraries/javalib/java/security/ProtectionDomain.java,
Index: kaffe/libraries/javalib/java/lang/SecurityManager.java
diff -u kaffe/libraries/javalib/java/lang/SecurityManager.java:1.20 
kaffe/libraries/javalib/java/lang/SecurityManager.java:1.21
--- kaffe/libraries/javalib/java/lang/SecurityManager.java:1.20 Mon May 31 21:15:30 
2004
+++ kaffe/libraries/javalib/java/lang/SecurityManager.java  Fri Jun  4 17:45:19 
2004
@@ -185,7 +185,7 @@
*  are from system classes
* A check of java.security.AllPermission succeeds.
* 
-   *
+   * 
* @return the most recent non-system ClassLoader on the execution stack
* @deprecated use [EMAIL PROTECTED] #checkPermission(Permission)} instead
*/
@@ -207,7 +207,7 @@
*  are from system classes
* A check of java.security.AllPermission succeeds.
* 
-   *
+   * 
* @return the most recent non-system Class on the execution stack
* @deprecated use [EMAIL PROTECTED] #checkPermission(Permission)} instead
*/
@@ -246,7 +246,7 @@
*  are from system classes
* A check of java.security.AllPermission succeeds.
* 
-   *
+   * 
* @return the index of the most recent non-system Class on the stack
* @deprecated use [EMAIL PROTECTED] #checkPermission(Permission)} instead
*/
@@ -391,8 +391,8 @@
*/
   public void checkAccess(Thread thread)
   {
-if (thread.getThreadGroup() != null
-&& thread.getThreadGroup().getParent() != null)
+if (thread.getThreadGroup() != null 
+   && thread.getThreadGroup().getParent() != null)
   checkPermission(new RuntimePermission("modifyThread"));
   }
 
@@ -1027,7 +1027,7 @@
  index != -1; index = list.indexOf(packageName, index + 1))
   {
 // Exploit package visibility for speed.
-int packageNameCount = packageName.length();
+   int packageNameCount = packageName.length();
 if (index + packageNameCount == list.length()
 || list.charAt(index + packageNameCount) == ',')
   {
@@ -1043,8 +1043,8 @@
 
 // XXX This class is unnecessary.
 class SecurityContext {
-Class[] classes;
-SecurityContext(Class[] classes) {
-this.classes = classes;
-}
+   Class[] classes;
+   SecurityContext(Class[] classes) {
+   this.classes = classes;
+   }
 }

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


Re: Merging in Classpath and PocketLinux AWT (Was Re: [kaffe] CVS kaffe (dalibor): Implemented -Xbooclasspath options)

2004-06-04 Thread jsimmons

> > Yipes. That is alot of work. The approach I have been doing is to create a
> > kaffe peer working with Classpath. Its alot of work which is not complete. 
> > I can send you what I have. 
> 
> Hello James,
> 
>   I am the guy who makes GNU Classpath's gtk-peers working on Kaffe, and
> I'd like to adapt your approach to create Kaffe's peers working with GNU
> CLasspath. Could you mind send me your progress and working files?
> 
>   Really glad to see Kaffe is getting stronger and stronger in many
> aspects, especially in AWT/Swing implementations.

I have been busy pounding on kaffe as well as the linux kernel. Right now 
my kaffe/classpath work wouldn't compile. Presently I'm moving alot of 
variables to the peers. A good example is NativeData. It's mostly moved 
over but not all the way. The other problem I'm tackling is the Insets.
If you want to see my work I can post a patch. Note the code changes alot 
per day.


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


Re: [kaffe] Release status...

2004-06-04 Thread Dalibor Topic
Dalibor Topic wrote:
Hi Jim,

 d) Fixing any "make dist" type problems that show up.  In the final
steps of making the release.  Typically, I need to cycle through
the build multiple times, as documented here:
http://www.kaffe.org/cgi-bin/viewcvs.cgi/kaffe-project-services/release-process/HOW-TO-MAKE-A-RELEASE?rev=1.1&content-type=text/vnd.viewcvs-markup 

Yeah, another rather boring bit, Again, I'm to blame for not doing a 
make distcheck regularly. I'm fixing that atm.

Should work on CVS head now.
cheers,
dalibor topic
___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Re: need detailed steps to configure kaffe 1.1.4 --with-awt=qt for pxa255

2004-06-04 Thread Dalibor Topic
Hi Cory,
èæå wrote:
Hello Dalibor,
  Thanks for responsing.I will keep on trying.
There is apparently a nasty problem with kaffe on xscale: the assembler 
code in config/arm directory uses some instructions for doubles and 
floats that aren't available on xscale, afaik.
  But can it be possible to make kaffe to run on xscale?I had seen someone
announced that he did make the boll rolling.
Yes. Partial support for that is in the CVS head. See ./configure --help 
for the precise option. Appearenly some people have problems with some 
assembler directives in the source. I've asked them to try changing a 
few lines, but got no reply. It's tough to check that myself as I don't 
have an Xscale on may hands to play with ... and the one on 
handhelds.org is mostly occupied/down.

I'll put up a snapshot of CVS tomorrow, and send you a link. I'm just 
running late for a bis right now :(

i hope this helps a little,
 Really thanks for that.You and the kaffe group have been making a great thing on
the world! 
Sorry about the delay, I wanted to make sure kaffe's CVS head's make 
dist works, and to resync woth classpath. The tarball with the CVS head 
snapshot it at http://www.kaffe.org/~robilad/kaffe-1.1.x-cvs.tar.gz

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


[kaffe] Problem with FileDescriptor.nativeInit

2004-06-04 Thread Fabien Renaud
Hello,
I compiled the kaffe cvs version without too much problems and 
transfered it on my ARM machine.
All seems ok until the loading of the FileDescriptor class :

java/lang/UnsatisfiedLinkError: Failed to locate native function:   
java/io/FileDescriptor.nativeInit()V
   at java.io.FileDescriptor.(FileDescriptor.java:83)

All my classes are in rt.jar
If someone could help me ?
Cheers,
Fabien
___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] AWT & Mailing list problem

2004-06-04 Thread Fabien Renaud
Fabien Renaud wrote:
Hello,
I ran gdb and had this result (still with the same application) :
Native AWT >fntInitFont...Default
Native AWT >fntInitFont...Default
Native AWT >fntInitFont...Default
Native AWT >fntInitFont...Monospaced
Native AWT >fntInitFont...Default
Native AWT >fntInitFont...Default
Native AWT >fntInitFont...Default
Native AWT >fntInitFont...Default
Native AWT >fntGetFixedWidth 0
Native AWT >fntIsWideFont
tlkDisplayBanner
pc : [<401eccbc>]lr : [<401eccd0>]Not tainted
sp : 00253914  ip : 00253908  fp : 002539f4
r10: 402f4cb8  r9 : 8d8c  r8 : 402f7390
r7 : 0002  r6 : acec  r5 : 0005  r4 : 0005
r3 : 0014  r2 : 40a599c0  r1 :   r0 : 
Flags: nZCv  IRQs on  FIQs on  Mode USER_32  Segment user
Control: 397F  Table: A3568000  DAC: 0015
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 1126)]
0x401eccbc in __current_locale_name (category=5) at localename.c:26
26  localename.c: No such file or directory.
   in localename.c
(gdb) where
#0  0x401eccbc in __current_locale_name (category=5) at localename.c:26
#1  0x401ef100 in guess_category_value (category=5, categoryname=0x0)
   at dcigettext.c:1102
#2  0x401ee534 in __dcigettext (domainname=0x402e0598 "libc",
   msgid1=0x60fe28 "undefined symbol: 
libnative_LTX_java_awt_Toolkit_evtGetNextEvent", m5
#3  0x401ee140 in __dcgettext (domainname=0x0, msgid=0x0, 
category=1075760336)
   at dcgettext.c:53
#4  0x401be248 in dlerror () at dlerror.c:72
#5  0x400acca8 in sys_dl_sym ()
  from /home/java/kaffe/jre/lib/arm/libkaffevm-1.1.4.so
#6  0x400b19bc in lt_dlsym ()
  from /home/java/kaffe/jre/lib/arm/libkaffevm-1.1.4.so
#7  0x4004cca0 in findLibraryFunction ()
  from /home/java/kaffe/jre/lib/arm/libkaffevm-1.1.4.so
#8  0x4004c6f0 in loadNativeLibrarySym ()
  from /home/java/kaffe/jre/lib/arm/libkaffevm-1.1.4.so
#9  0x4004c900 in native ()
  from /home/java/kaffe/jre/lib/arm/libkaffevm-1.1.4.so
#10 0x40079348 in callMethodA ()
  from /home/java/kaffe/jre/lib/arm/libkaffevm-1.1.4.so
#11 0x400b38d8 in virtualMachine ()
  from /home/java/kaffe/jre/lib/arm/libkaffevm-1.1.4.so

I think the problem comes from AWT but where exactly ?
Cheers,
Fabien
___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Someone has an idea or some documentations about how awt runs with qt ?
Cheers,
Fabien
___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe