[Bug libgcj/17021] libgcj verifier resolves classes too eagerly

2006-02-21 Thread thebohemian at gmx dot net
--- Comment #16 from thebohemian at gmx dot net 2006-02-21 10:37 --- Fixed by the following patches: Main patch: http://gcc.gnu.org/ml/java-patches/2006-q1/msg00124.html Build fix for ARM: http://gcc.gnu.org/ml/java-patches/2006-q1/msg00143.html Stylistic: remove casts http

[Bug classpath/19613] java.util.prefs should work like the JDK

2006-02-15 Thread thebohemian at gmx dot net
--- Comment #5 from thebohemian at gmx dot net 2006-02-15 08:28 --- As for the format Sun mentions this DTD in their API doc: http://java.sun.com/dtd/preferences.dtd -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19613

[Bug libgcj/26073] [4.2 regression] libjava fails to compile

2006-02-02 Thread thebohemian at gmx dot net
--- Comment #1 from thebohemian at gmx dot net 2006-02-02 19:28 --- Posted a patch to fix the issue: http://gcc.gnu.org/ml/java-patches/2006-q1/msg00139.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26073

[Bug libgcj/26063] memory leak in _Jv_Linker::link_symbol_table & ffi usage breaks build on ARM

2006-02-02 Thread thebohemian at gmx dot net
--- Comment #10 from thebohemian at gmx dot net 2006-02-02 19:26 --- (From update of attachment 10771) Forget about this patch. it doesnt compile and there is a working one on the java-patches list. -- thebohemian at gmx dot net changed: What|Removed

[Bug libgcj/26063] memory leak in _Jv_Linker::link_symbol_table & ffi usage breaks build on ARM

2006-02-02 Thread thebohemian at gmx dot net
--- Comment #8 from thebohemian at gmx dot net 2006-02-02 12:56 --- Created an attachment (id=10771) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10771&action=view) a preliminary patch (not tested) Unfortunately I am in a hurry and have to leave soon. If anyone depends

[Bug libgcj/26063] memory leak in _Jv_Linker::link_symbol_table & ffi usage breaks build on ARM

2006-02-02 Thread thebohemian at gmx dot net
--- Comment #7 from thebohemian at gmx dot net 2006-02-02 12:52 --- Changed the title and have a preliminary patch. -- thebohemian at gmx dot net changed: What|Removed |Added

[Bug libgcj/26063] memory leak in _Jv_Linker::link_symbol_table

2006-02-02 Thread thebohemian at gmx dot net
--- Comment #5 from thebohemian at gmx dot net 2006-02-02 12:06 --- The ffi usage breaks the build on arm :( Can someone tell me which macro I can use to test ffi availability? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26063

[Bug libgcj/26063] memory leak in _Jv_Linker::link_symbol_table

2006-02-01 Thread thebohemian at gmx dot net
--- Comment #2 from thebohemian at gmx dot net 2006-02-01 16:52 --- Added aph to get some ideas on how to solve this. Some ideas: The code that uses the ffi structure is so complicated because it is neccessary to prepare a call that takes one argument (a class name). I plan to put

[Bug libgcj/24638] inconsistent use of Jv_FindClass causing too weak error condition

2006-02-01 Thread thebohemian at gmx dot net
--- Comment #2 from thebohemian at gmx dot net 2006-02-01 13:49 --- The patch for PR 24616 contains variants of the methods I was talking here that do not throw any exception and instead make the caller responsible for throwing the correct exception or error: http://gcc.gnu.org/ml/java

[Bug libgcj/24616] linking non-existing BC-compiled classes: NoClassDefFoundErrors should be deferred

2006-02-01 Thread thebohemian at gmx dot net
--- Comment #29 from thebohemian at gmx dot net 2006-02-01 13:45 --- Fixed by: http://gcc.gnu.org/ml/java-patches/2006-q1/msg00124.html -- thebohemian at gmx dot net changed: What|Removed |Added

[Bug libgcj/26063] New: memory leak in _Jv_Linker::link_symbol_table

2006-02-01 Thread thebohemian at gmx dot net
in _Jv_Linker::link_symbol_table Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: thebohemian at gmx dot net http

[Bug libgcj/24616] linking non-existing BC-compiled classes: NoClassDefFoundErrors should be deferred

2006-01-31 Thread thebohemian at gmx dot net
--- Comment #28 from thebohemian at gmx dot net 2006-01-31 16:45 --- Created an attachment (id=10766) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10766&action=view) updated and fixed test setup -- thebohemian at gmx dot net changed: What|

[Bug libgcj/25265] linking BC-compiled classes with incompatible changes

2005-12-05 Thread thebohemian at gmx dot net
--- Comment #3 from thebohemian at gmx dot net 2005-12-05 21:53 --- The version of gcj in SVN cannot handle loading classes of case d ( = accessing a nonstatic field which is removed) when BC-compiled classes are used (interpreted mode is fine in all cases). -- http://gcc.gnu.org

[Bug libgcj/25265] linking BC-compiled classes with incompatible changes

2005-12-05 Thread thebohemian at gmx dot net
--- Comment #2 from thebohemian at gmx dot net 2005-12-05 14:37 --- Created an attachment (id=10409) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10409&action=view) test setup Same as above but fixed the messages about expected and unexpected Throwables. -- thebohe

[Bug libgcj/25265] linking BC-compiled classes with incompatible changes

2005-12-05 Thread thebohemian at gmx dot net
--- Comment #1 from thebohemian at gmx dot net 2005-12-05 14:03 --- Created an attachment (id=10408) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10408&action=view) test setup A test setup for the above mentioned 4 cases. There are three scripts which runs different inter

[Bug libgcj/25265] New: linking BC-compiled classes with incompatible changes

2005-12-05 Thread thebohemian at gmx dot net
nassigned at gcc dot gnu dot org ReportedBy: thebohemian at gmx dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25265

[Bug libgcj/24616] linking non-existing BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-12-05 Thread thebohemian at gmx dot net
--- Comment #27 from thebohemian at gmx dot net 2005-12-05 13:52 --- I changed the PR's title to reflect more clearly what it is about. This is about *missing* classes not about methods and fields which have been removed, changed or whatever. -- thebohemian at gmx dot net ch

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-12-05 Thread thebohemian at gmx dot net
--- Comment #26 from thebohemian at gmx dot net 2005-12-05 11:52 --- Created an attachment (id=10407) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10407&action=view) updated test setup Added two more tests: invokeMethodIndirect1 invokeMethodIndirect2 A ne

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-12-05 Thread thebohemian at gmx dot net
--- Comment #25 from thebohemian at gmx dot net 2005-12-05 11:34 --- aph, this would be your test case right? class T { void fail(){ System.out.println("fail-0"); M m = new M(); System.out.println("fail-1"); m.test(); } } // Byte

[Bug libgcj/25204] New: incorrect SIGQUIT handling

2005-12-01 Thread thebohemian at gmx dot net
Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: thebohemian at gmx dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id

[Bug libgcj/7532] shutdown hooks not run upon abnormal termination

2005-12-01 Thread thebohemian at gmx dot net
--- Comment #9 from thebohemian at gmx dot net 2005-12-01 14:05 --- The Sun JVM does not run shutdown hooks and similar stuff when running with -Xrs[0]. [0] - http://www-inf.int-evry.fr/cours/java/jdk1.4docs/tooldocs/solaris/java.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id

[Bug libgcj/7532] shutdown hooks not run upon abnormal termination

2005-12-01 Thread thebohemian at gmx dot net
--- Comment #8 from thebohemian at gmx dot net 2005-12-01 12:46 --- Created an attachment (id=10378) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10378&action=view) a test for the shutdown situation Here is another small test case. Output on another free VM looks li

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-11-17 Thread thebohemian at gmx dot net
--- Comment #22 from thebohemian at gmx dot net 2005-11-17 12:39 --- Created an attachment (id=10262) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10262&action=view) lazy linking - part 2 This is the same patch as above but corrects the behavior in case that the static f

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-11-16 Thread thebohemian at gmx dot net
--- Comment #20 from thebohemian at gmx dot net 2005-11-16 16:51 --- Created an attachment (id=10255) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10255&action=view) lazy linking - part 2 This is the second part of the lazy linking patch. Applying both fixes most of the p

[Bug libgcj/24638] inconsistent use of Jv_FindClass causing too weak error condition

2005-11-16 Thread thebohemian at gmx dot net
--- Comment #1 from thebohemian at gmx dot net 2005-11-16 16:50 --- By working on PR 24616 I found out that this belongs together. -- thebohemian at gmx dot net changed: What|Removed |Added

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-11-16 Thread thebohemian at gmx dot net
--- Comment #19 from thebohemian at gmx dot net 2005-11-16 16:35 --- Created an attachment (id=10254) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10254&action=view) lazy linking - first part This is the first part of the patch. See above for what it does. -- thebohe

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-11-09 Thread thebohemian at gmx dot net
--- Comment #17 from thebohemian at gmx dot net 2005-11-09 15:22 --- Created an attachment (id=10188) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10188&action=view) lazy linker test setup This is a small update to the test setup. BC-compilation is now done with de

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-11-09 Thread thebohemian at gmx dot net
--- Comment #16 from thebohemian at gmx dot net 2005-11-09 15:18 --- Created an attachment (id=10187) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10187&action=view) preliminary patch - just for review This is another preview of the patch. The patch begins to more a

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-11-08 Thread thebohemian at gmx dot net
--- Comment #14 from thebohemian at gmx dot net 2005-11-08 10:15 --- > But we don't need to use ffi_call here, we can just call the exception > throwing function directly. Right. That worked fine. > Then you'll realize that these functions don't need to be sepa

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-11-07 Thread thebohemian at gmx dot net
--- Comment #13 from thebohemian at gmx dot net 2005-11-07 20:03 --- anthony you're right. It should work without ffi_call invocation. Thanks for the review. I try to find out whether this fixes my segfault too, tomorrow. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24616

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-11-07 Thread thebohemian at gmx dot net
--- Comment #9 from thebohemian at gmx dot net 2005-11-07 12:51 --- Ok, more details: With my patch applied I run the test application in lazylinker.tar.bz2. Set up the variable CLASSPATH to point to lib/java/lazylinker.jar, start gdb with gij, set a breakpoint at link.cc:743 and run

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-11-07 Thread thebohemian at gmx dot net
--- Comment #7 from thebohemian at gmx dot net 2005-11-07 10:34 --- Created an attachment (id=10161) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10161&action=view) preliminary patch - just for review As andrew suggested I tried preparing a closure that is stored in the

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-11-05 Thread thebohemian at gmx dot net
--- Comment #5 from thebohemian at gmx dot net 2005-11-05 15:59 --- Created an attachment (id=10153) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10153&action=view) preliminary patch - just for review Here is a first start for a patch that makes access to static metho

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-11-05 Thread thebohemian at gmx dot net
--- Comment #4 from thebohemian at gmx dot net 2005-11-05 14:57 --- By further inspecting the problem I got the impression that gcj's approach of linking is flawed. As I understand it gcj does linking-on-initialization but for the java language, being built-around the idea of

[Bug libgcj/24638] New: inconsistent use of Jv_FindClass causing too weak error condition

2005-11-02 Thread thebohemian at gmx dot net
on: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcj AssignedTo: thebohemian at gmx dot net ReportedBy: thebohemian at gmx dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24638

[Bug libgcj/24637] New: static and non-static declarations of missing type do not pass the verifier

2005-11-02 Thread thebohemian at gmx dot net
pass the verifier Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcj AssignedTo: thebohemian at gmx dot net ReportedBy: thebohemian at gmx dot net http://gcc.gnu.org/bugzilla

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-11-02 Thread thebohemian at gmx dot net
--- Comment #3 from thebohemian at gmx dot net 2005-11-02 11:09 --- Created an attachment (id=10113) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10113&action=view) lazy linker test setup This is a newer version of the test for class linking. The change is that the actua

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-11-01 Thread thebohemian at gmx dot net
--- Comment #2 from thebohemian at gmx dot net 2005-11-01 19:38 --- More hints for the test: running the start script as: ??-run.sh nothing should succeed on every vm in every variant since the critical code locations are not touched in any way. However this only succeed for gij in

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-11-01 Thread thebohemian at gmx dot net
--- Comment #1 from thebohemian at gmx dot net 2005-11-01 19:32 --- Created an attachment (id=10103) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10103&action=view) A test for the linking mechanism This is a slightly bigger test for the linking mechanism. Unpack the tar.b

[Bug libgcj/24616] New: linking BC-compiled classes: NoClassDefFoundErrors should be deferred

2005-11-01 Thread thebohemian at gmx dot net
Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: thebohemian at gmx dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24616

[Bug libgcj/17021] libgcj verifier resolves classes too eagerly

2005-10-30 Thread thebohemian at gmx dot net
--- Comment #15 from thebohemian at gmx dot net 2005-10-30 19:14 --- Created an attachment (id=10082) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10082&action=view) proposed fix This patch includes all the lazyfications and a fix for to_array() involving primitive arra

[Bug libgcj/17021] libgcj verifier resolves classes too eagerly

2005-10-21 Thread thebohemian at gmx dot net
--- Comment #13 from thebohemian at gmx dot net 2005-10-21 16:15 --- Created an attachment (id=10041) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10041&action=view) proposed fix This fixes this bug and bunch of related problems. -- http://gcc.gnu.org/bugzilla/show_

[Bug libgcj/17021] libgcj verifier resolves classes too eagerly

2005-10-21 Thread thebohemian at gmx dot net
--- Comment #12 from thebohemian at gmx dot net 2005-10-21 16:13 --- Tromey suggested to not transform all Utf8Const object into a canonical form so I fixed the invokevirtual problem in the first way. I introduced a new method _Jv_equalUt8Const_classnames method which reliably compares

[Bug libgcj/17021] libgcj verifier resolves classes too eagerly

2005-10-19 Thread thebohemian at gmx dot net
--- Comment #11 from thebohemian at gmx dot net 2005-10-19 16:14 --- In the JavaUtils class of axis 1.2 RC2 contains the following instruction: 639: invokevirtual With a missing DataHandler class file this JavaUtils class can be verified successfully on sun' s jvm but fails at

[Bug libgcj/24433] New: GIJ interprets null too eagerly

2005-10-18 Thread thebohemian at gmx dot net
Status: UNCONFIRMED Severity: normal Priority: P2 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: thebohemian at gmx dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24433

[Bug libgcj/17021] libgcj verifier resolves classes too eagerly

2005-10-18 Thread thebohemian at gmx dot net
--- Comment #10 from thebohemian at gmx dot net 2005-10-18 17:09 --- Created an attachment (id=10022) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10022&action=view) a test class for the aanewarray lazyfication This tests lazy array instantiation which was not possible

[Bug libgcj/17021] libgcj verifier resolves classes too eagerly

2005-10-18 Thread thebohemian at gmx dot net
--- Comment #9 from thebohemian at gmx dot net 2005-10-18 17:01 --- Created an attachment (id=10021) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10021&action=view) new version of to_array method This is the lazyfied version of the to_array method which is uses

[Bug libgcj/17021] libgcj verifier resolves classes too eagerly

2005-10-18 Thread thebohemian at gmx dot net
--- Comment #8 from thebohemian at gmx dot net 2005-10-18 16:40 --- Created an attachment (id=10020) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10020&action=view) assignments to object This test class does all kinds of assignments to java.lang.Object variables. If you

[Bug libgcj/17021] libgcj verifier resolves classes too eagerly

2005-10-18 Thread thebohemian at gmx dot net
--- Comment #7 from thebohemian at gmx dot net 2005-10-18 16:38 --- Created an attachment (id=10019) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10019&action=view) new version of compatible I added a check which looks whether the LHS of an expression is java.lang.Obj

[Bug libgcj/17021] libgcj verifier resolves classes too eagerly

2005-10-17 Thread thebohemian at gmx dot net
-- thebohemian at gmx dot net changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |thebohemian at gmx dot net |dot org

[Bug libgcj/17021] libgcj verifier resolves classes too eagerly

2005-10-17 Thread thebohemian at gmx dot net
--- Comment #6 from thebohemian at gmx dot net 2005-10-18 00:18 --- With the help of Tromey and the team we made an interesting obervation: class Foo{ static Object o; void method(){ o = new RemoveClassFile(); } } This is accepted by you-know-which VM but

[Bug java/24410] GIJ does not accept "/"-syntax for main class on the command line

2005-10-17 Thread thebohemian at gmx dot net
--- Comment #1 from thebohemian at gmx dot net 2005-10-17 18:47 --- Possible fix: Take the class name as it is given on the command line and replace all "/" with "." . -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24410

[Bug java/24410] New: GIJ does not accept "/"-syntax for main class on the command line

2005-10-17 Thread thebohemian at gmx dot net
gcc dot gnu dot org ReportedBy: thebohemian at gmx dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24410

[Bug libgcj/24385] spurious NoClassDefFoundError with web applications

2005-10-15 Thread thebohemian at gmx dot net
--- Comment #2 from thebohemian at gmx dot net 2005-10-16 00:44 --- After some explanation on IRC and a test run with "gij -noverify" I concluded that this bug is a duplicate of 17021. *** This bug has been marked as a duplicate of 17021 *** -- thebohemian at gmx dot n

[Bug libgcj/17021] libgcj verifier resolves classes too eagerly

2005-10-15 Thread thebohemian at gmx dot net
--- Comment #5 from thebohemian at gmx dot net 2005-10-16 00:44 --- *** Bug 24385 has been marked as a duplicate of this bug. *** -- thebohemian at gmx dot net changed: What|Removed |Added

[Bug libgcj/24385] spurious NoClassDefFoundError with web applications

2005-10-15 Thread thebohemian at gmx dot net
--- Comment #1 from thebohemian at gmx dot net 2005-10-15 17:16 --- Created an attachment (id=9988) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9988&action=view) Test application showing the problem Unpack the application in your tomcat webapps folder and start the

[Bug libgcj/24385] New: spurious NoClassDefFoundError with web applications

2005-10-15 Thread thebohemian at gmx dot net
Severity: normal Priority: P2 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: thebohemian at gmx dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24385

[Bug libgcj/20509] New: inline function _Jv_Select could return error code instead of throwing exception

2005-03-16 Thread thebohemian at gmx dot net
Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: thebohemian at gmx dot net CC: gcc-bugs at gcc