Re: [drlvm/mmtk] jitrino.jet write barrier initial implementaion

2006-07-12 Thread Weldon Washburn
On 7/10/06, Alex Astapchuk [EMAIL PROTECTED] wrote: Weldon, I just commited http://issues.apache.org/jira/browse/HARMONY-816 into JIRA. It contains the changes for Jitrino.JET: - magics support for MMTk - write barriers for Java for MMTk - a simple test to check the things are alive I

[classlib] HARMONY-88 misses source file for MockJavaBean2.class

2006-07-12 Thread Mikhail Loenko
Hi George! HARMONY-88 contribution contains a file MockJavaBean2.bin that seems to be a binary representation of tests.api.java.beans.mock.MockJavaBean2 class in r406595 you have modifed BeansTest.java, for example Beans.instantiate(loader,tests.api.java.beans.mock.MockJavaBean2); was

Re: [classlib] internationalization

2006-07-12 Thread Alexey Petrenko
Not it will have special handling just for English locale. This special handling will say that we do need to load something. Why do you think it will take more memory for non-English locales? SY, Alexey 2006/7/12, Alexey Varlamov [EMAIL PROTECTED]: -1 for hardcoded English messages. This

Re: [jira] Commented: (HARMONY-815) [classlib][nio] Refine implConfigureBlocking(boolean) method of DatagramChannel and SocketChannel.

2006-07-12 Thread Andrew Zhang
Hello Mikhail, Please see my comments inline. Thanks! On 7/12/06, Mikhail Loenko [EMAIL PROTECTED] wrote: 2006/7/12, Andrew Zhang [EMAIL PROTECTED]: Hi Mikhail, It's a NON-NLS message. Native code is designed in this way. Currently, Harmony socket native code uses messages in

Re: [DRLVM] GC/VM interface discussion

2006-07-12 Thread Robin Garner
Weldon Washburn wrote: On 7/11/06, Robin Garner [EMAIL PROTECTED] wrote: Salikh Zakirov wrote: Ivan Volosyuk wrote: My idea here, is if the function is required by VM, it can be emulated on VM side via alloc + pin. Of cause, it is not the same as gc_pinned_alloc. The behaviour of GC will

Re: [classlib] internationalization

2006-07-12 Thread Alexey Petrenko
Geir, I've reread your email in the morning :) Internationalization classes auto-generation is really good idea. We can apply it for method described here and for new Eclipse method. In the first case generator will insert correct resource bundle and package name. In the second one we can

Re: [drlvm/mmtk] jitrino.jet write barrier design questions

2006-07-12 Thread Robin Garner
Weldon Washburn wrote: Alex, Sorry for taking so long to answer your questions below. Please see the response inline. Weldon On 6/27/06, Alex Astapchuk [EMAIL PROTECTED] wrote: AFAIR from the recent thread, to implement WB for MMTk support, I have to emit calls of

Re: [jira] Commented: (HARMONY-815) [classlib][nio] Refine implConfigureBlocking(boolean) method of DatagramChannel and SocketChannel.

2006-07-12 Thread Jimmy, Jing Lv
Andrew Zhang wrote: Hello Mikhail, Please see my comments inline. Thanks! On 7/12/06, Mikhail Loenko [EMAIL PROTECTED] wrote: 2006/7/12, Andrew Zhang [EMAIL PROTECTED]: Hi Mikhail, It's a NON-NLS message. Native code is designed in this way. Currently, Harmony socket native code uses

Re: [classlib] internationalization

2006-07-12 Thread Ilya Okomin
On 7/11/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Tim Ellison wrote: Ilya Okomin wrote: I'd like to be a volunteer for that. I just started working in this area (for SQL), maybe that is what prompted you...g IMHO it's reasonable to use framework presented in luni module with some

Re: svn commit: r420823 - in /incubator/harmony/enhanced/classlib/trunk/depends/libs/build: ./ README.txt fetch-awt-depends.sh

2006-07-12 Thread Alexey Petrenko
Mark, I've just returned from the vacation. And I have planned to work on trying to run awt with GnuWin32 libraries today. But we have few predicatble issues with them. We also did not finish the talks about integrating the needed sources into Harmony class library since the licenses seems to

Re: [classlib] internationalization

2006-07-12 Thread Alexey Varlamov
2006/7/12, Alexey Petrenko [EMAIL PROTECTED]: Not it will have special handling just for English locale. This special handling will say that we do need to load something. Well, a locale consists of several parameters, not only language. Anyway, the argument is to avoid any exceptional cases

Re: svn commit: r420823 - in /incubator/harmony/enhanced/classlib/trunk/depends/libs/build: ./ README.txt fetch-awt-depends.sh

2006-07-12 Thread Mark Hindess
On 12 July 2006 at 12:50, Alexey Petrenko [EMAIL PROTECTED] wrote: I've just returned from the vacation. And I have planned to work on trying to run awt with GnuWin32 libraries today. But we have few predicatble issues with them. Excellent. Thanks Alexey. We also did not finish the talks

Re: [classlib] internationalization

2006-07-12 Thread Alexey Petrenko
2006/7/12, Alexey Varlamov [EMAIL PROTECTED]: Why do you think it will take more memory for non-English locales? Bcause of longer keys to a bundle - compare a123 and The application has requested unusual operation and should be slated. It seems that we have some misunderstanding here... :)

Re: svn commit: r420823 - in /incubator/harmony/enhanced/classlib/trunk/depends/libs/build: ./ README.txt fetch-awt-depends.sh

2006-07-12 Thread Alexey Petrenko
2006/7/12, Mark Hindess [EMAIL PROTECTED]: On 12 July 2006 at 12:50, Alexey Petrenko [EMAIL PROTECTED] wrote: I've just returned from the vacation. And I have planned to work on trying to run awt with GnuWin32 libraries today. But we have few predicatble issues with them. Excellent.

Re: [classlib][concurrent] java.util.concurrent module proposal

2006-07-12 Thread Tim Ellison
Nathan Beyer wrote: I've checked in my proposal for the java.util.concurrent module at https://svn.apache.org/repos/asf/incubator/harmony/enhanced/classlib/trunk/s andbox/juc-proposal. You didn't just check in a proposal, you also checked in Doug Lea et al's code. Nobody should commit other

Re: [classlib] internationalization

2006-07-12 Thread Alexey Varlamov
So you are agreed with the first reason? :) 2006/7/12, Alexey Petrenko [EMAIL PROTECTED]: 2006/7/12, Alexey Varlamov [EMAIL PROTECTED]: Why do you think it will take more memory for non-English locales? Bcause of longer keys to a bundle - compare a123 and The application has requested

Re: [classlib][concurrent] java.util.concurrent module proposal

2006-07-12 Thread Geir Magnusson Jr
Tim Ellison wrote: Nathan Beyer wrote: I've checked in my proposal for the java.util.concurrent module at https://svn.apache.org/repos/asf/incubator/harmony/enhanced/classlib/trunk/s andbox/juc-proposal. You didn't just check in a proposal, you also checked in Doug Lea et al's code.

Re: [jira] Commented: (HARMONY-815) [classlib][nio] Refine implConfigureBlocking(boolean) method of DatagramChannel and SocketChannel.

2006-07-12 Thread Mikhail Loenko
-1 for applying the patch Applying this patch means creating a hidden problem Thanks, Mikhail 2006/7/12, Jimmy, Jing Lv [EMAIL PROTECTED]: Andrew Zhang wrote: Hello Mikhail, Please see my comments inline. Thanks! On 7/12/06, Mikhail Loenko [EMAIL PROTECTED] wrote: 2006/7/12, Andrew

Re: [classlib] internationalization

2006-07-12 Thread Alexey Petrenko
2006/7/12, Alexey Varlamov [EMAIL PROTECTED]: So you are agreed with the first reason? :) No, I do not agree that this is a problem. But this is one of the possible arguments. 2006/7/12, Alexey Petrenko [EMAIL PROTECTED]: 2006/7/12, Alexey Varlamov [EMAIL PROTECTED]: Why do you think it

Re: [classlib] internationalization

2006-07-12 Thread Ilya Okomin
On 7/12/06, Alexey Petrenko [EMAIL PROTECTED] wrote: Geir, I've reread your email in the morning :) Internationalization classes auto-generation is really good idea. We can apply it for method described here and for new Eclipse method. Agree, especially it is right for the eclipse based

Re: [jira] Commented: (HARMONY-815) [classlib][nio] Refine implConfigureBlocking(boolean) method of DatagramChannel and SocketChannel.

2006-07-12 Thread Andrew Zhang
Hello Mikhail, I think it's about native source architecture design. The patch is made based on current native source code. Of course, Ihow to design a native and java interface is a good topi for discussion on mailing list. But, could you please suggest what shall I do next? Change all native

Re: [jira] Commented: (HARMONY-815) [classlib][nio] Refine implConfigureBlocking(boolean) method of DatagramChannel and SocketChannel.

2006-07-12 Thread LvJimmy,Jing
Hi Mikhail: This applying is not creating a hidden problem, as this code exists already. If I remember correctly, the last patch to DatagramChannelImpl removes this code, however later find it still necessary. And I remember SocketChannel also contain such code similar to this. I see no

Re: [classlib][testing] excluding the failed tests

2006-07-12 Thread Vladimir Ivanov
On 7/7/06, Tim Ellison [EMAIL PROTECTED] wrote: ... Currently I'm looking on the excluded TestCases and it requires more time than I expected. I'll prepare a report/summary about excluded TestCases at the end of this process. Thanks, Vladimir On 7/7/06, Tim Ellison [EMAIL PROTECTED] wrote:

Re: [classlib] HARMONY-88 misses source file for MockJavaBean2.class

2006-07-12 Thread George Harley
Hi Mikhail, Just seen your note. Yes, of course, I will look at this immediately. Sorry for the inconvenience. Best regards, George Mikhail Loenko wrote: Hi George! HARMONY-88 contribution contains a file MockJavaBean2.bin that seems to be a binary representation of

Re: [classlib] internationalization

2006-07-12 Thread Denis Kishenko
Hi all ! I would like to take part in internationalization discussion. I agree with Alexey Petrenko that traditional way is better for work with exception messages. Yes, Eclipse method has much faster access but needs to load ALL module messages at once. Exception messages are used rarely, so

Re: [classlib][concurrent] java.util.concurrent module proposal

2006-07-12 Thread Tim Ellison
Geir Magnusson Jr wrote: Tim Ellison wrote: Nathan Beyer wrote: I've checked in my proposal for the java.util.concurrent module at https://svn.apache.org/repos/asf/incubator/harmony/enhanced/classlib/trunk/s andbox/juc-proposal. You didn't just check in a proposal, you also checked in

Breaking awt native build?

2006-07-12 Thread Mark Hindess
Anyone object if I break the awt native build (the part that currently only runs when call ant with -Dwith.awt.swing=true)? (More specifically the windows build - I'm hoping to not break the linux part although it is pretty complicated so perhaps I will.) The reason is that I'm doing the AWT

Re: Breaking awt native build?

2006-07-12 Thread Geir Magnusson Jr
Mark Hindess wrote: Anyone object if I break the awt native build (the part that currently only runs when call ant with -Dwith.awt.swing=true)? (More specifically the windows build - I'm hoping to not break the linux part although it is pretty complicated so perhaps I will.) Um... :)

Re: [classlib][concurrent] java.util.concurrent module proposal

2006-07-12 Thread Andrey Chernyshev
On 7/12/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Tim Ellison wrote: Nathan Beyer wrote: I've checked in my proposal for the java.util.concurrent module at https://svn.apache.org/repos/asf/incubator/harmony/enhanced/classlib/trunk/s andbox/juc-proposal. You didn't just check in a

Re: [classlib] HARMONY-88 misses source file for MockJavaBean2.class

2006-07-12 Thread George Harley
Hi, I looked at this earlier on (soon after my first note) and found that the matter seemed to already been resolved ? Best regards, George Mikhail Loenko wrote: Hi George! HARMONY-88 contribution contains a file MockJavaBean2.bin that seems to be a binary representation of

Re: [classlib] HARMONY-88 misses source file for MockJavaBean2.class

2006-07-12 Thread George Harley
Hi Mikhail, You are probably already aware of this but the tests that use the SerClassLoader custom class loader result in a StackOverflowError when run against the RI. The overridden implementation of findResource(String) calls getResource(String) which, according to the spec, may end up

Re: Breaking awt native build?

2006-07-12 Thread Mark Hindess
On 12 July 2006 at 12:09, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Mark Hindess wrote: Anyone object if I break the awt native build (the part that currently only runs when call ant with -Dwith.awt.swing=true)? (More specifically the windows build - I'm hoping to not break the linux

Apachecon?

2006-07-12 Thread Sanket Sharma
Hi, Just out of curiosity. any attending Apachecon Asia? Best Regards, Sanket Sharma -Original Message- From: Mark Hindess [mailto:[EMAIL PROTECTED] Sent: Wed 7/12/2006 11:09 PM To: harmony-dev@incubator.apache.org; [EMAIL PROTECTED] Subject: Re: Breaking awt native build? On

Re: [drlvm] using the harmony launcher

2006-07-12 Thread Andrey Chernyshev
With some changes I was able to run the DRLVM with classlib's launcher. Here is what I did (you can see the experimental patch at http://issues.apache.org/jira/browse/HARMONY-857): - I have added JNI_CreateJavaVM declaration to jni.h (guess it will be the most appropriate place for it); - Added

Re: [drlvm] using the harmony launcher

2006-07-12 Thread Geir Magnusson Jr
Andrey Chernyshev wrote: With some changes I was able to run the DRLVM with classlib's launcher. Here is what I did (you can see the experimental patch at http://issues.apache.org/jira/browse/HARMONY-857): This is very cool. Why experimental? what is the big problem if we accept it and go on

Re: Breaking awt native build?

2006-07-12 Thread Geir Magnusson Jr
Mark Hindess wrote: On 12 July 2006 at 12:09, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Mark Hindess wrote: Anyone object if I break the awt native build (the part that currently only runs when call ant with -Dwith.awt.swing=true)? (More specifically the windows build - I'm hoping to not

Re: [classlib] HARMONY-88 misses source file for MockJavaBean2.class

2006-07-12 Thread Geir Magnusson Jr
George Harley wrote: Hi Mikhail, You are probably already aware of this but the tests that use the SerClassLoader custom class loader result in a StackOverflowError when run against the RI. The overridden implementation of findResource(String) calls getResource(String) which, according to

Re: Breaking awt native build?

2006-07-12 Thread Geir Magnusson Jr
oh, and for me to be consistent reminder - please put [classlib] (or what's right) in the subject line.. Mark Hindess wrote: Anyone object if I break the awt native build (the part that currently only runs when call ant with -Dwith.awt.swing=true)? (More specifically the windows build -

Re: Apachecon?

2006-07-12 Thread Geir Magnusson Jr
I was thinking about it, but aug is pretty tough for me, travel-wise geir Sanket Sharma wrote: Hi, Just out of curiosity. any attending Apachecon Asia? Best Regards, Sanket Sharma -Original Message- From: Mark Hindess [mailto:[EMAIL PROTECTED] Sent: Wed 7/12/2006

Re: [classlib][concurrent] java.util.concurrent module proposal

2006-07-12 Thread Geir Magnusson Jr
Tim Ellison wrote: Geir Magnusson Jr wrote: Tim Ellison wrote: Nathan Beyer wrote: I've checked in my proposal for the java.util.concurrent module at https://svn.apache.org/repos/asf/incubator/harmony/enhanced/classlib/trunk/s andbox/juc-proposal. You didn't just check in a proposal, you

Re: [classlib] internationalization

2006-07-12 Thread Geir Magnusson Jr
Alexey Petrenko wrote: Geir, I've reread your email in the morning :) Internationalization classes auto-generation is really good idea. We can apply it for method described here and for new Eclipse method. I'll settle for it being an idea. Not sure if it's a good one. Tim has been

Re: [classlib] internationalization

2006-07-12 Thread Geir Magnusson Jr
Ilya Okomin wrote: On 7/11/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Have you had any thoughts about a 'common' code set, that is copied and modified at build time, setting the right package name and bundle name by convention? That would remove the need to duplicate the code.

Re: svn commit: r420823 - in /incubator/harmony/enhanced/classlib/trunk/depends/libs/build: ./ README.txt fetch-awt-depends.sh

2006-07-12 Thread Geir Magnusson Jr
Alexey Petrenko wrote: 2006/7/12, Mark Hindess [EMAIL PROTECTED]: On 12 July 2006 at 12:50, Alexey Petrenko [EMAIL PROTECTED] wrote: I've just returned from the vacation. And I have planned to work on trying to run awt with GnuWin32 libraries today. But we have few predicatble

Re: [jira] Commented: (HARMONY-815) [classlib][nio] Refine implConfigureBlocking(boolean) method of DatagramChannel and SocketChannel.

2006-07-12 Thread Geir Magnusson Jr
I agree with the reason why (I think I understand it - you don't want to rely on the result of getMessage() to determine the problem...) Could you wrap the socket exception to carry a simple integer error code? geir Mikhail Loenko wrote: -1 for applying the patch Applying this patch means

Re: [drlvm] interface call devirtualization

2006-07-12 Thread Rana Dasgupta
Hi Egor, Nice benchmark. Yes, the cost of not devirtualizing as well as not hoisting ldintfcvt is high. I played around a little with this too and have some comments and questions... First some high level stuff 1) What are the instructions like ldintfcvt, ldvfnslot, etc.in the jit dump?

Re: [jira] Commented: (HARMONY-815) [classlib][nio] Refine implConfigureBlocking(boolean) method of DatagramChannel and SocketChannel.

2006-07-12 Thread Andrew Zhang
Hello Geir, I also mention this solution as option.1. But it has to be portable error code, which should be defined in portlib. Thanks! On 7/13/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: I agree with the reason why (I think I understand it - you don't want to rely on the result of

Re: [classlib] HARMONY-88 misses source file for MockJavaBean2.class

2006-07-12 Thread Mikhail Loenko
Hi George I did not know that. When I run ant test -Dtest.jre.home=... for some odd reason this test does not run at all. I'll try to figure out why. I completely agree that the test should pass on RI. I'll fix the test. The old version of the test copied files on the disk in many test

Re: [classlib] Exception throwing compatibility: java.util.Scanner

2006-07-12 Thread Richard Liang
Richard Liang wrote: Geir Magnusson Jr wrote: Richard Liang wrote: Geir Magnusson Jr wrote: Richard Liang wrote: For this case, I decide to follow useRadix(int radix). Please correct me if I'm wrong. Thanks a lot. Do you mean that you're going to follow the

Re: [classlib] HARMONY-88 misses source file for MockJavaBean2.class

2006-07-12 Thread Mikhail Loenko
Not completely. We still miss the source. 2006/7/12, George Harley [EMAIL PROTECTED]: Hi, I looked at this earlier on (soon after my first note) and found that the matter seemed to already been resolved ? Best regards, George Mikhail Loenko wrote: Hi George! HARMONY-88 contribution

I18N on native (was:Re: [jira] Commented: (HARMONY-815) [classlib][nio] Refine implConfigureBlocking(boolean) method of DatagramChannel and SocketChannel.)

2006-07-12 Thread Jimmy, Jing Lv
Hi: I'd like to raise the topic on I18N of native code. As discussed about patch-815, we found there are exceptions thrown by native code with un-internationalized error message. To resolve this problem, there may be two solutions: 1) make native code return error code instead of throw

Re: I18N on native (was:Re: [jira] Commented: (HARMONY-815) [classlib][nio] Refine implConfigureBlocking(boolean) method of DatagramChannel and SocketChannel.)

2006-07-12 Thread Andrew Zhang
On 7/13/06, Jimmy, Jing Lv [EMAIL PROTECTED] wrote: Hi: I'd like to raise the topic on I18N of native code. As discussed about patch-815, we found there are exceptions thrown by native code with un-internationalized error message. To resolve this problem, there may be two solutions:

Re: I18N on native (was:Re: [jira] Commented: (HARMONY-815) [classlib][nio] Refine implConfigureBlocking(boolean) method of DatagramChannel and SocketChannel.)

2006-07-12 Thread Mikhail Loenko
I suggest that we: 1) avoid throwing exceptions from native code 2) don't parse exception messages in the code (use subclasses of exceptions when necessary) Thanks, Mikhail 2006/7/13, Andrew Zhang [EMAIL PROTECTED]: On 7/13/06, Jimmy, Jing Lv [EMAIL PROTECTED] wrote: Hi: I'd like to

Re: [DRLVM] questions about build.bat -DEBUILD_CFG=debug -DCXX=msvc

2006-07-12 Thread Vladimir Gorr
Weldon, why did you pass the EBUILD_CFG but not BUILD_CFG? I believe a reason of your issue is here. Thanks, Vladimir. On 7/13/06, Weldon Washburn [EMAIL PROTECTED] wrote: Hi, I am trying to use the debugger to step through the write barrier support that was recently added to Jitrino.JET.

Re: [jira] Commented: (HARMONY-815) [classlib][nio] Refine implConfigureBlocking(boolean) method of DatagramChannel and SocketChannel.

2006-07-12 Thread Paulex Yang
Seems workable, but the exception messages thrown by native codes still need to be internationalized, you may want to invoke Msg.getString() to get the localized message as what Java codes do, but of course this is another issue. Andrew Zhang wrote: How about design a subclass which extends

Re: I18N on native (was:Re: [jira] Commented: (HARMONY-815) [classlib][nio] Refine implConfigureBlocking(boolean) method of DatagramChannel and SocketChannel.)

2006-07-12 Thread Vladimir Gorr
On 7/13/06, Jimmy, Jing Lv [EMAIL PROTECTED] wrote: Hi: I'd like to raise the topic on I18N of native code. As discussed about patch-815, we found there are exceptions thrown by native code with un-internationalized error message. To resolve this problem, there may be two solutions: 1)

Re: [jira] Commented: (HARMONY-81) java.util.zip.Inflater.infalate() throws DataFormatException instead of actual number of uncompressed bytes

2006-07-12 Thread Mikhail Loenko
Sergey why you think we should return 0 in case of Z_STREAM_ERROR? Don't we need just check for 0 the 'len' parameter? Thanks, Mikhail 2006/7/12, Sergey Soldatov (JIRA) [EMAIL PROTECTED]: [ http://issues.apache.org/jira/browse/HARMONY-81?page=comments#action_12420584 ] Sergey Soldatov

[classlib][nio][discussion] Implementation of java.nio.channels.spi.SelectorProvider.inheritedChannel()

2006-07-12 Thread Andrew Zhang
Hello everybody, I plan to implement java.nio.channels.spi.SelectorProvider.inheritedChannel() method. Currently Harmony simply returns null. Spec doesn not specify how to detect inheritedChannel clearly, Returns the channel inherited from the entity that created this Java virtual machine. For