[Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with Thread?]

2006-06-14 Thread Paulex Yang
I'm trying to complete the interruptible channel feature of NIO module, but there is a question. The spec for InterruptibleChannel says: A channel that implements this interface is asynchronously closeable: If a thread is blocked in an I/O operation on an interruptible channel then another

Re: [classlib][NIO|VMI]JNI 1.4 enhancement on ByteBuffer

2006-06-14 Thread Tim Ellison
Paulex Yang wrote: snip I think the kernel class means the classes which heavily depends on VM implementation, but the buffer is another story, it is the JNI actually depends on Classlib implementation, so instead of put buffers into kernel, I prefer to pull the three JNI methods out of VM

Re: [classlib] Modularising the native code - it begins!

2006-06-14 Thread Oliver Deakin
Geir Magnusson Jr wrote: Oliver Deakin wrote: Hi all, As you have probably noticed, I recently raised HARMONY-596 (which Mark has already kindly applied) to make .lib and .a files generate straight into the deploy/lib directory. I think that now we are in a position to finally modularise

Re: Problems with builth path!

2006-06-14 Thread Stepan Mishura
On 6/14/06, Richard Liang wrote: Tim Ellison wrote: Richard Liang wrote: I launch Eclipse 3.2 RC7 with options -Xms256M -Xmx256M -vm D:\jdk\RI\jdk1.5.0_06\bin\javaw -Dpde.allowCycles=true -Dpde.jreProfile=none, But LUNI still cannot add luni-kernel-stubs.jar to its Plug-in

Re: Problems with builth path!

2006-06-14 Thread Richard Liang
Stepan Mishura wrote: On 6/14/06, Richard Liang wrote: Tim Ellison wrote: Richard Liang wrote: I launch Eclipse 3.2 RC7 with options -Xms256M -Xmx256M -vm D:\jdk\RI\jdk1.5.0_06\bin\javaw -Dpde.allowCycles=true -Dpde.jreProfile=none, But LUNI still cannot add luni-kernel-stubs.jar to

[build] windows files on linux

2006-06-14 Thread Anton Luht
Good day, I'm trying to build VM from SVN using build.sh and have noticed that build.sh update fetched something that looks Windows-only: build root/pre-copied/common/CLASSLIB/depends/oss/win.ia32/icu4c-3.4-harmony.zip , five dlls in build root/pre-copied/common/CLASSLIB/depends/libs/win.ia32/

Re: Pack200 -- can now read constant pool header

2006-06-14 Thread Tim Ellison
Alex Blewitt wrote: snip I've created Harmony 599 (http://issues.apache.org/jira/browse/HARMONY-599) with a zip of what I've done so far. I don't believe that it has compile errors, and the tests run OK -- it's just if I depend on a method/class that's not yet available in the classpath

Re: Problems with builth path!

2006-06-14 Thread Stepan Mishura
On 6/14/06, Richard Liang wrote: Stepan Mishura wrote: On 6/14/06, Richard Liang wrote: Tim Ellison wrote: Richard Liang wrote: I launch Eclipse 3.2 RC7 with options -Xms256M -Xmx256M -vm D:\jdk\RI\jdk1.5.0_06\bin\javaw -Dpde.allowCycles=true -Dpde.jreProfile=none, But LUNI

Re: [build] windows files on linux

2006-06-14 Thread Tim Ellison
Geir is currently refactoring the DRLVM build, so things will be changing; however, at the moment there is no opportunity for separate checkout of the code in our SVN for windows and linux builds (which is the 'problem' you are seeing here). Regards, Tim Anton Luht wrote: Good day, I'm

Re: [Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with Thread?]

2006-06-14 Thread Tim Ellison
Paulex Yang wrote: snip Seems Thread's implementation must be aware of what operation it is blocking on. So I propose the following solution: 1. Add this method to kernel class Thread (in VMI): private void setInterruptAction(Runnable action); ...and, reading on, you'll need to add a new

Re: [classlib] Modularising the native code - it begins!

2006-06-14 Thread Oliver Deakin
I have a couple of questions about location of makefiles and makefile includes 1) Currently the makefiles for the modules are stored underneath the platform and component they relate to. For example, the luni makefiles are situated at native-src/linux.IA32/luni/makefile and

Re: [jira] Commented: (HARMONY-592) java.lang.Enum does not deserialize correctly

2006-06-14 Thread Tim Ellison
Thanks for the link Richard. Looks like we will need to put support for Enum right into the ObjectStreams. I'm therefore not convinced that your patch is the right thing to do. Anyone else care to comment? Regards, Tim Richard Liang wrote: Tim Ellison wrote: Richard Liang (JIRA) wrote:

Re: [jira] Commented: (HARMONY-592) java.lang.Enum does not deserialize correctly

2006-06-14 Thread Boris Kuznetsov
I think that unspecified protected method readResolve() in Enum is against the spec. So, ObjectInputStream should be fixed. Best regards, Boris Kuznetsov Intel Middleware Products Division On 6/14/06, Tim Ellison [EMAIL PROTECTED] wrote: Thanks for the link Richard. Looks like we will need

Re: [Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with Thread?]

2006-06-14 Thread Geir Magnusson Jr
Paulex Yang wrote: I'm trying to complete the interruptible channel feature of NIO module, but there is a question. The spec for InterruptibleChannel says: A channel that implements this interface is asynchronously closeable: If a thread is blocked in an I/O operation on an

Re: [classlib] Modularising the native code - it begins!

2006-06-14 Thread Geir Magnusson Jr
Modularize on! Oliver Deakin wrote: Geir Magnusson Jr wrote: Oliver Deakin wrote: Hi all, As you have probably noticed, I recently raised HARMONY-596 (which Mark has already kindly applied) to make .lib and .a files generate straight into the deploy/lib directory. I think that now we

Re: [build] windows files on linux

2006-06-14 Thread Geir Magnusson Jr
Yah - for now, just ignore it... I'd suggest that you offer a patch, but if you do so, be forwarned that this is all in flux - I don't think there's a clear plan yet - so it may go unused. geir Tim Ellison wrote: Geir is currently refactoring the DRLVM build, so things will be changing;

Re: [classlib] Modularising the native code - it begins!

2006-06-14 Thread Geir Magnusson Jr
Oliver Deakin wrote: I have a couple of questions about location of makefiles and makefile includes 1) Currently the makefiles for the modules are stored underneath the platform and component they relate to. For example, the luni makefiles are situated at

Re: [VOTE] Acceptance of Harmony-528 : AWT, Java2D and Swing

2006-06-14 Thread Tim Ellison
Thanks for the extra time to consider the code, and apologies for dragging out the vote. This really is a great leap forward for Harmony. I'm +1 to accept the code. Regards, Tim Geir Magnusson Jr wrote: I have received the ACQs and the BCC for Harmony-528, so I can assert that the critical

Re: [Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with Thread?]

2006-06-14 Thread Tim Ellison
Geir Magnusson Jr wrote: Paulex Yang wrote: I'm trying to complete the interruptible channel feature of NIO module, but there is a question. The spec for InterruptibleChannel says: A channel that implements this interface is asynchronously closeable: If a thread is blocked in an I/O

Re: [classlib] Modularising the native code - it begins!

2006-06-14 Thread Oliver Deakin
Geir Magnusson Jr wrote: Oliver Deakin wrote: I have a couple of questions about location of makefiles and makefile includes 1) Currently the makefiles for the modules are stored underneath the platform and component they relate to. For example, the luni makefiles are situated at

[testing][classlib] running api tests only -- new option

2006-06-14 Thread Mikhail Loenko
For the modules that have both impl and api tests I'm going to add possibility to skip impl tests, like this: ant -f build-test.xml -Dtest.noimpl=true -Dtest.jre.home=... If no objection I'll integrate changes so that the work on splitting the tests could be continued. (BTW, volunteers are

Re: [classlib] [testing] java.beans tests

2006-06-14 Thread Mikhail Loenko
Hi Alexei 2006/6/14, Alexei Zakharov [EMAIL PROTECTED]: Hello to everyone, I am currently investigating tests for java.beans module. As far as I Cool! understand there were two separate contributions of java.beans tests from two different parties. And these contributions were merged into

Re: [classlib] [testing] java.beans tests

2006-06-14 Thread Tim Ellison
Alexei Zakharov wrote: Hello to everyone, I am currently investigating tests for java.beans module. Great. As far as I understand there were two separate contributions of java.beans tests from two different parties. And these contributions were merged into the single combined test suite

Re: [classlib] [testing] Coverage (was Re: 37% of total test execution time is spent in a single test)

2006-06-14 Thread Mark Hindess
On 14 June 2006 at 7:04, Geir Magnusson Jr [EMAIL PROTECTED] wrote: yes. And/or add it to the upcoming donation of the [testing] infrastructure to make it part of the CI runs. Are you talking about me? It's just an ant file and a few script so I hope you aren't expecting too much. geir

Re: [classlib][NIO|VMI]JNI 1.4 enhancement on ByteBuffer

2006-06-14 Thread Archie Cobbs
Paulex Yang wrote: But after all, the implementation details(class name, fields/methods, etc) are different, so the idea is to provide the three JNI methods' implementation in NIO module, and add them into VMI, so that VM vendor can choose to add them into the JNI function table. I think this

Re: [classlib] [testing] java.beans tests

2006-06-14 Thread Tim Ellison
p.s. the reference to [1] is http://incubator.apache.org/harmony/subcomponents/classlibrary/compat.html Tim Ellison wrote: Alexei Zakharov wrote: Hello to everyone, I am currently investigating tests for java.beans module. Great. As far as I understand there were two separate

Re: [Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with Thread?]

2006-06-14 Thread Archie Cobbs
Paulex Yang wrote: Seems Thread's implementation must be aware of what operation it is blocking on. So I propose the following solution: I don't think the VM or java.lang.Thread needs to be involved. First of all, the code performing the blocking operation knows what kind of operation it is,

Re: [classlib] Modularising the native code - it begins!

2006-06-14 Thread Mark Hindess
On 14 June 2006 at 7:24, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Oliver Deakin wrote: I have a couple of questions about location of makefiles and makefile includes 1) Currently the makefiles for the modules are stored underneath the platform and component they relate to. For

Re: [classlib] Modularising the native code - it begins!

2006-06-14 Thread Mikhail Loenko
2006/6/14, Mark Hindess [EMAIL PROTECTED]: On 14 June 2006 at 7:24, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Oliver Deakin wrote: I have a couple of questions about location of makefiles and makefile includes 1) Currently the makefiles for the modules are stored underneath the

Re: [DRLVM] write barrier -- some preliminary design ideas for Jitrino.JET

2006-06-14 Thread Alex Astapchuk
Ming, The above is just a consideration for infrastructure. I have already implemented the write barrier code in jet for some GC developed in C. It has already been tested and attached file is the patch. Cool ! Thanks for the patch ! I'm not too familiar with GC stuff, but seems you are

Re: [classlib] [testing] java.beans tests

2006-06-14 Thread Geir Magnusson Jr
Alexei Zakharov wrote: Hello to everyone, I am currently investigating tests for java.beans module. As far as I understand there were two separate contributions of java.beans tests from two different parties. And these contributions were merged into the single combined test suite we have

Re: [Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with Thread?]

2006-06-14 Thread Geir Magnusson Jr
Tim Ellison wrote: Geir Magnusson Jr wrote: Paulex Yang wrote: I'm trying to complete the interruptible channel feature of NIO module, but there is a question. The spec for InterruptibleChannel says: A channel that implements this interface is asynchronously closeable: If a thread is

Re: [testing][classlib] running api tests only -- new option

2006-06-14 Thread Geir Magnusson Jr
I assume you'll document this somewhere? Mikhail Loenko wrote: For the modules that have both impl and api tests I'm going to add possibility to skip impl tests, like this: ant -f build-test.xml -Dtest.noimpl=true -Dtest.jre.home=... If no objection I'll integrate changes so that the work

Re: [classlib] [testing] Coverage (was Re: 37% of total test execution time is spent in a single test)

2006-06-14 Thread Geir Magnusson Jr
Mark Hindess wrote: On 14 June 2006 at 7:04, Geir Magnusson Jr [EMAIL PROTECTED] wrote: yes. And/or add it to the upcoming donation of the [testing] infrastructure to make it part of the CI runs. Are you talking about me? It's just an ant file and a few script so I hope you aren't

Re: [testing][classlib] running api tests only -- new option

2006-06-14 Thread Mikhail Loenko
Sure. Can you suggest a proper place? 2006/6/14, Geir Magnusson Jr [EMAIL PROTECTED]: I assume you'll document this somewhere? Mikhail Loenko wrote: For the modules that have both impl and api tests I'm going to add possibility to skip impl tests, like this: ant -f build-test.xml

Re: [classlib] [testing] java.beans tests

2006-06-14 Thread Alexei Zakharov
Mikhail, Tim, I suggest that you raise a few examples here. The first example that comes to my mind is the RI's implementation of PersistenceDelegate for java.lang.String class. (Persistence delegate is a class that manages persistence details of his target class and is used by

Re: [classlib] Modularising the native code - it begins!

2006-06-14 Thread Gregory Shimansky
2006/6/14, Mark Hindess [EMAIL PROTECTED]: On 14 June 2006 at 7:24, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Oliver Deakin wrote: I have a couple of questions about location of makefiles and makefile includes 1) Currently the makefiles for the modules are stored underneath the

Re: [testing][classlib] running api tests only -- new option

2006-06-14 Thread Geir Magnusson Jr
How about on the website where you are already talking about how tests are organized? Or maybe we need a new developers page? or a testing page to start The Grand Testing Subset of the Apache Harmony Project? Mikhail Loenko wrote: Sure. Can you suggest a proper place? 2006/6/14, Geir

Re: [classlib] [testing] java.beans tests

2006-06-14 Thread Alexei Zakharov
BTW, all questionable methods of PersistenceDelegate interface are protected rather than public. Do we need to test it at all? 2006/6/14, Alexei Zakharov [EMAIL PROTECTED]: Mikhail, Tim, I suggest that you raise a few examples here. The first example that comes to my mind is the RI's

Re: [classlib] [testing] java.beans tests

2006-06-14 Thread Richard Liang
Alexei Zakharov wrote: BTW, all questionable methods of PersistenceDelegate interface are protected rather than public. Do we need to test it at all? Hello Alexei, IMHO, we need to test the protected methods, which are also part of API. 2006/6/14, Alexei Zakharov [EMAIL PROTECTED]:

Re: [Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with Thread?]

2006-06-14 Thread Tim Ellison
Geir Magnusson Jr wrote: Given that you are blocked, why is it in an unknown state? The problem is that you typically don't know whether the thread is actually blocked or not. So if it is really blocked then, yes, interrupting it may leave the channel safe for future operations, but if it were

RE: [Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with Thread?]

2006-06-14 Thread Magnusson, Geir
This font is getting out of hand... -Original Message- From: Tim Ellison [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 11:12 AM To: harmony-dev@incubator.apache.org Subject: Re: [Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with

Re: [DRLVM] write barrier -- some preliminary design ideas for Jitrino.JET

2006-06-14 Thread Weldon Washburn
Alex, It looks like the JIT needs to support write barriers written in both C as well as Java. Its probably best to think of the C write barrier as a conventional vm helper call. For a garbage collector written in Java like MMTk, the write barrier is actually Java code. Injecting a vm helper

Re: [classlib] Modularising the native code - it begins!

2006-06-14 Thread Oliver Deakin
Mark Hindess wrote: snip On 14 June 2006 at 7:24, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Oliver Deakin wrote: 2) The makefiles for each native component include two files (defines.mak and rules.mak on windows and makefile.include and rules.mk on linux) that are generic across all

Re: [classlib] Modularising the native code - it begins!

2006-06-14 Thread Tim Ellison
Oliver Deakin wrote: snip but now that I look at it I see that the depends/files dir contains the Harmony properties files, so maybe I'm wrong. Those are launcher-specific, so don't get too attached to them, I'll move them out to the tools/launcher directory where they better belong.

Re: [drlvm] what I'm doing...

2006-06-14 Thread Denis Sharypov
the patch that makes the DRLVM work with the latest Harmony class libraries is published: http://issues.apache.org/jira/browse/HARMONY-601 It works fine with the current Harmony sources and may be applied and commited right away. -- Denis Sharypov, Intel Middleware Products Division On 6/9/06,

Re: [drlvm] what I'm doing...

2006-06-14 Thread Mark Hindess
On 14 June 2006 at 20:59, Denis Sharypov [EMAIL PROTECTED] wrote: the patch that makes the DRLVM work with the latest Harmony class libraries is published: http://issues.apache.org/jira/browse/HARMONY-601 It works fine with the current Harmony sources and may be applied and commited right

Re: [drlvm] what I'm doing...

2006-06-14 Thread Geir Magnusson Jr
Please don't do anything with this. I'll patch classlib when I'm comfortable with what I'm doing. geir Mark Hindess wrote: On 14 June 2006 at 20:59, Denis Sharypov [EMAIL PROTECTED] wrote: the patch that makes the DRLVM work with the latest Harmony class libraries is published:

Re: [drlvm] what I'm doing...

2006-06-14 Thread Geir Magnusson Jr
Thanks, but I'm still in the middle. I'll give a look, but I think I'm ok. (I just had a high interrupt rate this weekend, so my context switches and family stuff slowed me down...) I wish that whoever did this had chatted a bit on the list so we could talk about things... Also, is there a way

Re: [Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with Thread?]

2006-06-14 Thread Jimmy, Jing Lv
Archie Cobbs wrote: Paulex Yang wrote: Seems Thread's implementation must be aware of what operation it is blocking on. So I propose the following solution: I don't think the VM or java.lang.Thread needs to be involved. First of all, the code performing the blocking operation knows what kind

Re: [Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with Thread?]

2006-06-14 Thread Andrew Zhang
Hi, Archie I have a question, please see my comment inline. Thanks! On 6/14/06, Archie Cobbs [EMAIL PROTECTED] wrote: Paulex Yang wrote: Seems Thread's implementation must be aware of what operation it is blocking on. So I propose the following solution: I don't think the VM or

Re: [Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with Thread?]

2006-06-14 Thread Andrew Zhang
On 6/14/06, Magnusson, Geir [EMAIL PROTECTED] wrote: This font is getting out of hand... -Original Message- From: Tim Ellison [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 11:12 AM To: harmony-dev@incubator.apache.org Subject: Re: [Fwd: [classlib][NIO|VMI]Interruptible

[drlvm] need a quick answer re how things are linked...

2006-06-14 Thread Geir Magnusson Jr
Ok, so I've gotten quite a bit done (I think) and stuff builds using the classlib as it is in /enhanced/classlib/trunk using it's own build artifacts. So my tests are failing. java/lang/UnsatisfiedLinkError : Failed loading library

Re: [Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with Thread?]

2006-06-14 Thread Geir Magnusson Jr
Andrew Zhang wrote: Geir : Given that NIO is an advanced API, why would the NIO EG let the channel user simply decide? If you were interrupted while blocked on the channel, you must close. If not, you can use it... Most of users may prefer to decide the operation by themselves, but

Re: [Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with Thread?]

2006-06-14 Thread Paulex Yang
Tim Ellison wrote: Paulex Yang wrote: snip Seems Thread's implementation must be aware of what operation it is blocking on. So I propose the following solution: 1. Add this method to kernel class Thread (in VMI): private void setInterruptAction(Runnable action); ...and, reading on,

Re: Fwd: [DRLVM] proposal to port MMTK to drlvm

2006-06-14 Thread Robin Garner
Weldon Washburn wrote: oops, I forgot to cc: -- Forwarded message -- From: Weldon Washburn [EMAIL PROTECTED] Date: May 24, 2006 11:23 AM Subject: Re: [DRLVM] proposal to port MMTK to drlvm To: [EMAIL PROTECTED] On 5/24/06, Daniel Feinberg [EMAIL PROTECTED] wrote: that is

Re: [drlvm] need a quick answer re how things are linked...

2006-06-14 Thread Geir Magnusson Jr
I figured that one out... it was in properties.cpp Let me ask - why are DLLs specified in cpp files like this? geir Geir Magnusson Jr wrote: Ok, so I've gotten quite a bit done (I think) and stuff builds using the classlib as it is in /enhanced/classlib/trunk using it's own build

test

2006-06-14 Thread Geir Magnusson Jr
test - please ignore - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with Thread?]

2006-06-14 Thread Paulex Yang
Jimmy, Jing Lv wrote: Archie Cobbs wrote: Paulex Yang wrote: Seems Thread's implementation must be aware of what operation it is blocking on. So I propose the following solution: I don't think the VM or java.lang.Thread needs to be involved. First of all, the code performing the blocking

[drlvm] build now uses classlib as specified by a property

2006-06-14 Thread Geir Magnusson Jr
It's working now, at least on windows. I'll round-trip it tomorrow through SVN to check it on linux. You can just set a property to point to a classlib/trunk/deploy. Note that you have to have built that classlib already, so this can be as simple as an HDK. I'll review tomorrow after sleeping

Re: [classlib] [testing] Coverage (was Re: 37% of total test execution time is spent in a single test)

2006-06-14 Thread Vladimir Ivanov
I've update web (viv.byethost15.com) - published fresh coverage information. No awt package in the beans coverage table anymore. Also I've update the jira-564 by extended script (that include security, auth, crypto, lang and rmi packages). Now I have 2 questions/ issues to discuss: 1)

Re: [classlib][NIO|VMI]JNI 1.4 enhancement on ByteBuffer

2006-06-14 Thread Paulex Yang
Archie Cobbs wrote: Paulex Yang wrote: But after all, the implementation details(class name, fields/methods, etc) are different, so the idea is to provide the three JNI methods' implementation in NIO module, and add them into VMI, so that VM vendor can choose to add them into the JNI function