Re: [PATCH] [JAVA] patch for Java on RTEMS

2011-08-15 Thread Jie Liu
> Looks OK, but there is no ChangeLog.  Do you have copyright > assignment? Have added ChangeLog to the patch, please see the attachment. And I think I have copyright assignment, because I have Free Software Foundation paperwork, as "ASSIGNMENT - GNU GCC ... JIE RT688742" Best Regards, Jie gcj-

Re: [PATCH] [JAVA] patch for Java on RTEMS

2011-08-14 Thread Jie Liu
Hi, I have add the boehm-gc patch and the configure for gcc patch to the patch attached. So we can add this patch and then compile gcj for RTEMS. Best Regards, Jie gcj-rtems.patch Description: Binary data

Re: [PATCH] [JAVA] Double.parseDouble(null) throw NullPointerException

2011-08-12 Thread Jie Liu
> If you did, then I don't know, you'll have to debug it, sorry. > > I vaguely recollect that -fcheck-references adds a check for 'this' at > the start of final methods.  If I'm misremembering, then that is > probably the problem. In my debug, there appears no check for 'this' at start of String.l

Re: [PATCH] [JAVA] Double.parseDouble(null) throw NullPointerException

2011-08-12 Thread Jie Liu
> Jie> But it does not work as we want, is there something wrong? > > Did you rebuild all of libgcj? Yes. :) > > If you did, then I don't know, you'll have to debug it, sorry. > > I vaguely recollect that -fcheck-references adds a check for 'this' at > the start of final methods.  If I'm misrememb

[PATCH] [JAVA] patch for Java on RTEMS

2011-08-10 Thread Jie Liu
Hi, For the previous analysis "libjava patches for RTEMS"[1], there are 6 cases need to pay more attention. PR18699, TLtest, Thread_Interrupt, Thread_Sleep_2, Throw_2 and bclink. After add patch to bdwgc for RTEMS pthread support[2]: PR18699PASS after Modify [A bug in boehm-

Re: [PATCH] [JAVA] Double.parseDouble(null) throw NullPointerException

2011-08-10 Thread Jie Liu
2011/8/10 Tom Tromey : >>>>>> "Jie" == Jie Liu writes: > > Jie> RTEMS does not have virtual memory management, so there is no error > Jie> when access the 0 address on rtems. > Jie> So 'str->length()' donot throw NPE and just return

Re: [PATCH] [JAVA] Double.parseDouble(null) throw NullPointerException

2011-08-09 Thread Jie Liu
?r=127, npe.c is the main file and *.scn is the output. Thanks, Jie 2011/8/8 Tom Tromey : >>>>>> "Jie" == Jie Liu writes: > > Jie> +  if(str == NULL) > Jie> +      throw new NullPointerException(); > Jie> + > Jie>    int length = s

Re: [PATCH] [JAVA] Double.parseDouble(null) throw NullPointerException

2011-08-07 Thread Jie Liu
Hi, When I use gcj on an RTOS(RTEMS), Double.parseDouble(null) throw NumberFormatException, but it should throw NullPointerException. So I add the patch below: Index: natVMDouble.cc === --- natVMDouble.cc (revision 172224) +++ n

libjava patches for RTEMS

2011-07-04 Thread Jie Liu
Hi, GCJ is available on RTEMS/pc386. Here is the libjava testsuite result on RTEMS/pc386: === libjava Summary === # of expected passes2249 # of unexpected failures94 # of untested testcases 66 As the testsuite result is good enough, I think it's time to get t

Re: Have a boehm-gc patch for gcj/rtems

2011-06-12 Thread Jie Liu
= --- os_dep.c(revision 172224) +++ os_dep.c(working copy) @@ -1507,7 +1507,7 @@ # if !defined(OS2) && !defined(PCR) && !defined(AMIGA) \ && !defined(MSWIN32) && !defined(MSWINCE) \ - && !defined(MACOS) && !defined(D

Have a boehm-gc patch for gcj/rtems

2011-06-04 Thread Jie Liu
Hi, I am working on porting gcj to rtems now, it's a project of GSoC2011.[1] And now, the first step: boehm-gc have been ported, so I want to get this patch reviewed and merged. And I have filed the FSF Paperwork, the patch has been attached. Thank you for your time. Best Regards, Jie [1]http: