ClassLoader.getSystemClassLoader().
Are some people using system class loader to refer to the
bootstrap loader.. ? I'd love some clarification on this.
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
Jeroen Frijters wrote:
Archie Cobbs wrote:
Jeroen Frijters wrote:
The Sun API spec clearly states that Class.getClassLoader() may return
null, and in fact MUST return null for primitive type Class objects.
So why worry about obviously buggy software?
Because most software
is. What's a short program that behaves differently
on two VMs? Etc.
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/classpath
FYI,
Patch below committed.
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
Index: ChangeLog
===
RCS file: /cvsroot
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/classpath
Jeroen Frijters wrote:
Archie Cobbs wrote:
I think we desperately need a VMClassLoader.getCallerClassLoader()
But what the semantics of this method? I.e., define the caller.
For example, would it return the same thing for both of these
call traces?
Foo.method
with that class as the one to
associate with the native library.
Before I go and implement this, does this sound correct to everyone?
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/classpath
_jc_stack_crawl.)
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo
subtleties of VM design.
E.g., Classpath has implicitly defined this line.. is that the best line?
What line would you draw if you were starting over? (rhetorical questions,
please don't answer on the list :-)
-Archie
__
Archie
-classpath/2004-03/msg00057.html
No one had any comments, and moreover the patch adds functionality
that is otherwise not implemented.
If there are no objections I'll check it in later today or tomorrow.
Thanks,
-Archie
__
Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
.
- Fixed some erroneous mutex assertions.
- Fixed infinite loop when local native references exceeded.
- Fixed some build problems.
Cheers,
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
to bother you anymore.
Me too :-)
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http
- JC patch as small as possible to ease
future merges.
This was especially fun for 0.07 - 0.08 because somebody rearranged
the order of all the methods in Class.java and Thread.java :-)
-Archie
__
Archie Cobbs *CTO
but does hit GC cycle time severely as every object has
to be check for being in this special RawData class. So for JC byte[]
is best.
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
, as they are surely
going to have to do anyway.
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http
the build options in the Configuration class?
public class Configuration {
public static final String BUILD_OPTIONS = {
--enable-jni, --enable-load-library, ...
};
...
}
-Archie
__
Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
, buf, sizeof(ptr));
continue using the fully restored ptr
I'm not a specophile but I would guess that C does at least guarantee this.
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
/viewcvs.py/*checkout*/jcvm/jcvm/java/java/lang/Thread.java?rev=1.2
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL
by
definition requires a real monitor, so I side step the redundant monitor
lookup.
Hmm.. sounds like JamVM does the same thing as I described pretty much.
Why then unhappy ? I must be missing something.
-Archie
__
Archie Cobbs
[] avoids this problem.
I remember kaffe had a kaffe.util.Pointer reference type that did this,
and was specially recognized by the GC. Slightly better than Object imho.
-Archie
__
Archie Cobbs *CTO, Awarix
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
out great and I'm very appreciative of it!!
Cheers,
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
objective... sounds like an improvement.
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http
then the comment should be removed and this method made native
always?
Thanks,
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing
the class using the internal VM mechanism associated
with doing new.
Good point.. that would be a lot simpler.
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
() the thread in waitFor(), plus problem #2 goes away.
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL
it into Java?
Thanks,
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo
an IllegalThreadStateException so that's what my code does; see:
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Process.html#exitValue()
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
(), exec(), waitpid(), etc.
and should be as portable as the existing native code. I'd have to
rewrite my JCNI native code in JNI but that would be easy.
Let me know if people are interested.
-Archie
__
Archie Cobbs
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
#Bootstrap%20Process
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman
.
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
test run handy that
they could email me for comparison?
Thanks!
-Archie
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
__
Archie Cobbs *CTO, Awarix* http://www.awarix.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
been
included. So neither of O_SYNC or O_FSYNC is defined yet, and
the result is the same (O_SYNC is chosen which is incorrect).
Not sure what the right fix is but the patch below does work.
Thanks,
-Archie
__
Archie Cobbs
to reduce clutter in the bug db :-)
Thanks,
-Archie
__
Archie Cobbs *Halloo Communications* http://www.halloo.com
___
Classpath mailing list
[EMAIL PROTECTED]
http
. But this *is* used
by many programs so ex. Kaffe sets this property.
Seems like this fix (really workaround) should be merged into
Classpath itself too, no?
-Archie
__
Archie Cobbs *Halloo Communications* http
__
Archie Cobbs *Halloo Communications* http://www.halloo.com
Index: target_generic_file.h
===
RCS file: /cvs-latest/classpath/classpath/native/target
fact.
The patch below (expanded to show context) should fix this particular
bug, but there may very well be other similar bugs elsewhere...
Cheers,
-Archie
__
Archie Cobbs *Halloo Communications* http
Archie Cobbs wrote:
+
+ /* free native reference */
+ (*env-DeleteLocalRef(env, str);
^^
Sorry, lost a ) in there somehow..
-Archie
__
Archie Cobbs *Halloo Communications* http
signature, etc.
I think a simple fix would be to try to read the directory
(which you are most likely going to have to do later anyway)
in the constructor(s).
Thanks,
-Archie
__
Archie Cobbs *Halloo Communications
agree that just reading the magic number (first four bytes) would
be plenty sufficient.
Cheers,
-Archie
__
Archie Cobbs *Halloo Communications* http://www.halloo.com
__
Archie Cobbs *Halloo Communications* http://www.halloo.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
offset;
};
struct _jc_zip {
int fd;
char*path;
int num_entries;
_jc_zip_entry *entries;
};
-Archie
__
Archie Cobbs
it...
Here it is.. have at it :-) You'll need to replace the calls to
_jc_vm_alloc(), _jc_post_exception(), etc.
I'm not a license freak so if LGPL doesn't work for somebody let me know.
Cheers,
-Archie
__
Archie Cobbs
. 0.08 will out in 3 month.
What about this page? It still says 0.06 is the latest:
http://www.gnu.org/software/classpath/downloads/downloads.html
Thanks,
-Archie
__
Archie Cobbs *Halloo Communications
__
Archie Cobbs *Halloo Communications* http://www.halloo.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
,
-Archie
__
Archie Cobbs *Halloo Communications* http://www.halloo.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
,
-Archie
__
Archie Cobbs * Precision I/O * http://www.precisionio.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
__
Archie Cobbs * Precision I/O * http://www.precisionio.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
Hi,
Here's a patch that might help the next VM implementor after me... :-)
Thanks,
-Archie
__
Archie Cobbs * Precision I/O * http://www.precisionio.com
--- /home/archie/classpath/classpath-0.05/vm
Archie Cobbs wrote:
The practical upshot of this is that the equals() methods that currently
exist in Classpath for Field and Constructor need to be fixed. But the
fixes could use obj1.getDeclaringClass() == obj2.getDeclaringClass()
as part of the test.
Method also needs to be fixed
__
Archie Cobbs * Precision I/O * http://www.precisionio.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
.
But the exact meaning of clear benefit overall requires discussion,
which is why it seems worthwhile to bring these questions up.
Cheers,
-Archie
__
Archie Cobbs * Precision I/O * http
:
http://java.sun.com/j2se/1.4/docs/api/java/lang/reflect/Method.html#equals(java.lang.Object)
Is this a classpath bug?
Thanks,
-Archie
__
Archie Cobbs * Precision I/O * http://www.precisionio.com
__
Archie Cobbs * Precision I/O * http://www.precisionio.com
--- classpath/classpath-0.05/vm/reference/java/lang/Class.java Sat Oct 26 11:41:59
2002
+++ /home/archie/jc/classpath/java/lang/Class.java Thu Feb 27 17:24:32 2003
__
Archie Cobbs * Precision I/O * http://www.precisionio.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
this makes sense and is not too simplistic a view to take,
as I'm new to this project. Comments?
Thanks,
-Archie
__
Archie Cobbs * Packet Design * http://www.packetdesign.com
__
Archie Cobbs * Packet Design * http://www.packetdesign.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
,
-Archie
__
Archie Cobbs * Packet Design * http://www.packetdesign.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
a framework for
doing something and then provides an implementation that simply
does nothing.
As always, I could be completely misunderstanding things..
Thanks,
-Archie
__
Archie Cobbs * Packet Design * http
.
Thanks,
-Archie
__
Archie Cobbs * Packet Design * http://www.packetdesign.com
___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath
I'm not seeing?
Thanks for taking the time to look at this.
Cheers,
-Archie
__
Archie Cobbs * Packet Design * http://www.packetdesign.com
___
Classpath mailing list
ation, etc.
-Archie
_______
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
201 - 276 of 276 matches
Mail list logo