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

2006-07-11 Thread Robin Garner
Weldon Washburn wrote: On 7/10/06, Ivan Volosyuk [EMAIL PROTECTED] wrote: On 7/10/06, Weldon Washburn [EMAIL PROTECTED] wrote: On 7/10/06, Ivan Volosyuk [EMAIL PROTECTED] wrote: One question, why do we need write barriers for 'putstatic' bytecode? This fields appear in root set and does

Re: [classlib] HARMONY-820 (beautifying of java.beans classes)

2006-07-11 Thread Geir Magnusson Jr
And just to be an annoying nudge, I'll throw in my 0.02 : public Object get(Object oldInstance) { if (oldInstance == null) { return null; } return getValue((ObjectNode) nodes.get(oldInstance)); } (added newline after method decl, space after the if, and

Re: [drlvm] using the harmony launcher

2006-07-11 Thread Geir Magnusson Jr
This has been my thinking - even if not perfect, lets get it working using the launcher and then fix as required. It's arguable if that brokenness matters at this point, and I think that there's plenty to be gained from having it work via the launcher. geir Rana Dasgupta wrote: create_vm()

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

2006-07-11 Thread Robin Garner
Weldon Washburn wrote: On 7/10/06, Alex Astapchuk [EMAIL PROTECTED] wrote: Weldon, I just commited http://issues.apache.org/jira/browse/HARMONY-816 into JIRA. Thanks. I will look at it today. It contains the changes for Jitrino.JET: - magics support for MMTk - write barriers for Java

Re: [build-test-infra] Build Test Infrastructure

2006-07-11 Thread Geir Magnusson Jr
Thanks for all the comments - I know this will be an exciting part of our project ;) (There were no comments...) Anyway, I checked in into enhanced/buildtest. In trunk, you should be able to : ant setup and have the almost the thing install and ant just kicks it off and runs it. I say

Re: [build-test-infra] Build Test Infrastructure

2006-07-11 Thread Richard Liang
Geir Magnusson Jr. wrote: Aside from being distracted by my new macbook pro dual core intel wonderbox, I was playing with seeding a build/test/ci infrastructure, and want to solicit comments before I check in something. I call this a seed because I know there's a lot of interest in a

Re: [classlib] fix for HARMONY-743

2006-07-11 Thread Alexey Petrenko
I agree that first one is better. 2006/7/11, Mikhail Loenko [EMAIL PROTECTED]: Hi Tim you've fixed check for parameters in one of the (byte[], int, int) methods in a way different to how we fixed them before: offset 0 || len 0 || (long)offset + (long)len input.length compare to e.g

[classlib][nio] How to deal with unstable but useful tests?

2006-07-11 Thread Andrew Zhang
Hello everybody, I noticed such tests in DatagramChannel, which is useful, but potentially unstable. Consider: public void testReadWrite_configureBlock() throws Exception { byte[] targetArray = new byte[2]; // bind and connect this.channel1.socket().bind(localAddr2);

Re: [classlib][nio] How to deal with unstable but useful tests?

2006-07-11 Thread Tim Ellison
Andrew Zhang wrote: Hello everybody, I noticed such tests in DatagramChannel, which is useful, but potentially unstable. Consider: public void testReadWrite_configureBlock() throws Exception { byte[] targetArray = new byte[2]; // bind and connect

Re: [classlib][nio] How to deal with unstable but useful tests?

2006-07-11 Thread Andrew Zhang
Hello Tim, Thank you for your suggestion. :) Of course, fix is the best choice. I also have tried to use wait/notify, but found it didn't work for this case. Please note that channel1.read(targetBuf); // Label 3 is a blocking operation. And we want code at label 1,2 to execute after label 3.

Re: [DRLVM] GC/VM interface discussion

2006-07-11 Thread Xiao-Feng Li
Ivan, GCExport Managed_Object_Handle gc_alloc_pinned(); This API is currently unused. How about we dump it for now? (NOTE: MMTk has the concept of immortal space. Immortal space is never collected, never moved, only traced. Maybe we need an immortal space kind of API instead??)

Re: Re: [classlib] Testing conventions - a proposal

2006-07-11 Thread Alexei Zakharov
Hi Alex, It's a pitty what you didn't find common sense in my post. Probably I was not clear enough. My key points are: 1. JUnit is much like a standard of unit testing today 2. We are using JUnit already, have thousands of tests 3. May be I was not correct about bugs in TestNG - I assume that

Re: [classlib] fix for HARMONY-743

2006-07-11 Thread Tim Ellison
Mikhail Loenko wrote: Hi Tim you've fixed check for parameters in one of the (byte[], int, int) methods in a way different to how we fixed them before: offset 0 || len 0 || (long)offset + (long)len input.length compare to e.g HARMONY-377 or -437: count 0 || offset 0 || offset

Re: [classlib] TestNG v. JUnit

2006-07-11 Thread George Harley
Hi Richard, Thank you for that great summary. Another thing that may be of interest to people is that TestNG has been around for a couple of years now while JUnit 4 was released approximately four months ago. Best regards, George Richard Liang wrote: Nathan Beyer wrote: Not to add

[classlib][bug-to-bug] HARMONY-401 -- does it make sense to revisit our decision?

2006-07-11 Thread Mikhail Loenko
I think we should revisit our decision on H-401 and fix our implementation to follow RI to avoid breaking existing apps. http://issues.apache.org/jira/browse/HARMONY-401 Thanks, Mikhail - Terms of use :

Re: [classlib] HARMONY-820 (beautifying of java.beans classes)

2006-07-11 Thread Alexei Zakharov
Hi, I agree with your suggestion - we may throw away both variables. I just have missed this. About spaces after if please see [1]. This was my code style guide. BTW, this seems to be a nice question. Do we have some officially approved style guide in Harmony? [1]

Re: [drlvm] using the harmony launcher

2006-07-11 Thread Andrey Chernyshev
OK, so I'm going to add CreateJavaVM into vm\vmcore\src\jni\jni.cpp and also add implementation into DestroyVM (stub is already seem to be present there) based on destroy_vm(). Then we'll see how it works with the launcher. Thanks, Andrey. On 7/11/06, Geir Magnusson Jr [EMAIL PROTECTED]

Re: [classlib][nio] How to deal with unstable but useful tests?

2006-07-11 Thread Paulex Yang
Andrew, The AsyncCloseException is actually thrown by AbstractInterruptibleChannel.end(), so probably you actually want to test is if DatagramChannel.read() invokes begin()/end() as below: try{ begin(); complete = doSomeIO(); }finally{ end(complete); } To test this, you may want to

Re: [classlib] HARMONY-820 (beautifying of java.beans classes)

2006-07-11 Thread Mikhail Loenko
2006/7/11, Alexei Zakharov [EMAIL PROTECTED]: Hi, I agree with your suggestion - we may throw away both variables. I just have missed this. About spaces after if please see [1]. This was my code style guide. BTW, this seems to be a nice question. Do we have some officially approved style guide

Re: [classlib] HARMONY-820 (beautifying of java.beans classes)

2006-07-11 Thread Alexei Zakharov
setting id=org.eclipse.jdt.core.formatter.lineSplit value=150 / Hmmm, this doesn't fit my window (since I use large font). It seems this profile doesn't compatible with SunCC... 2006/7/11, Mikhail Loenko [EMAIL PROTECTED]: 2006/7/11, Alexei Zakharov [EMAIL PROTECTED]: Hi, I agree with your

Re: [build-test-infra] Build Test Infrastructure

2006-07-11 Thread Richard Liang
Geir Magnusson Jr wrote: Thanks for all the comments - I know this will be an exciting part of our project ;) (There were no comments...) Anyway, I checked in into enhanced/buildtest. In trunk, you should be able to : ant setup and have the almost the thing install and ant just

I want to be in the Apache Harmony project

2006-07-11 Thread Evgeny S. Sidorenko
My name is Evgeny S. Sidorenko. I'm a student of the Novosibirsk State University(RUSSIA). I'm very interested in this project, and so I want to be in it. I looked through modules, and I was interested in module SOUND, especially because it is not realized yet. I began to incarnate it. By now I

Re: [classlib][bug-to-bug] HARMONY-401 -- does it make sense to revisit our decision?

2006-07-11 Thread Geir Magnusson Jr
Have you found an example where it matters? (Just curious) Mikhail Loenko wrote: I think we should revisit our decision on H-401 and fix our implementation to follow RI to avoid breaking existing apps. http://issues.apache.org/jira/browse/HARMONY-401 Thanks, Mikhail

Re: I want to be in the Apache Harmony project

2006-07-11 Thread Geir Magnusson Jr
Evgeny S. Sidorenko wrote: My name is Evgeny S. Sidorenko. I'm a student of the Novosibirsk State University(RUSSIA). I'm very interested in this project, and so I want to be in it. I looked through modules, and I was interested in module SOUND, especially because it is not realized yet. I

Re: [build-test-infra] Build Test Infrastructure

2006-07-11 Thread Geir Magnusson Jr
Richard Liang wrote: It seems that JAVA_HOME is required by cc/cruisecontrol.sh on my Ubuntu :-) Do I miss something? Thanks a lot. That seems to be the case :) If you set it, does it work? It seems to want it for two things, tools.jar (for it's JSPs?) and where to find java executable.

Re: [classlib][bug-to-bug] HARMONY-401 -- does it make sense to revisit our decision?

2006-07-11 Thread Mikhail Loenko
no, I walked thru old JIRA issues 2006/7/11, Geir Magnusson Jr [EMAIL PROTECTED]: Have you found an example where it matters? (Just curious) Mikhail Loenko wrote: I think we should revisit our decision on H-401 and fix our implementation to follow RI to avoid breaking existing apps.

Re: [classlib][nio] How to deal with unstable but useful tests?

2006-07-11 Thread Tim Ellison
I hadn't appreciated that the read call is blocking... So how about you do the blocking read() in a new thread, then the main thread can poll to wait until the reading thread's state is Blocked, before closing the channel and forcing the exception? The problem is that the thread will be detached

Re: [SableVM] please tell us the status of the Apache License 2.0

2006-07-11 Thread Etienne Gagnon
Hi all, Yes, I'm still alive... I've been overloaded by work, so I took a leave from reading/answering mailing-lists, over the last month. OK. Here's the status: SableVM's trunk is licensed under the AL2, yet, as the Harmony porting is not yet functional, there is no release yet of that code.

Re: I want to be in the Apache Harmony project

2006-07-11 Thread Tim Ellison
Welcome Evgeny. Thanks for volunteering! Once you have sent the faxes Geir mentioned please send your code (little and often) via JIRA, and let us know what you are doing/problems/etc. We all like to see the code evolve. There are a bunch of people here who are happy to help answer questions

Re: [classlib] crypto2

2006-07-11 Thread Boris Kuznetsov
Implementation of javax.crypto.spec.DESKeySpec.isParityAdjusted method is better in crypto2. Thanks, Boris On 7/11/06, Tim Ellison [EMAIL PROTECTED] wrote: We still have modules/crypto and modules/crypto2 [1] -- is anybody working on merging them? Is there anything in crypto2 to be merged or

Re: [classlib] crypto2

2006-07-11 Thread Mikhail Loenko
I'll merge that method to crypto Mikhail 2006/7/11, Boris Kuznetsov [EMAIL PROTECTED]: Implementation of javax.crypto.spec.DESKeySpec.isParityAdjusted method is better in crypto2. Thanks, Boris On 7/11/06, Tim Ellison [EMAIL PROTECTED] wrote: We still have modules/crypto and

Re: [classlib] crypto2

2006-07-11 Thread Tim Ellison
Thanks Boris/Mikhail. Anything else we want to take across? Regards, Tim Mikhail Loenko wrote: I'll merge that method to crypto Mikhail 2006/7/11, Boris Kuznetsov [EMAIL PROTECTED]: Implementation of javax.crypto.spec.DESKeySpec.isParityAdjusted method is better in crypto2. Thanks,

Re: [classlib] Is it OK for VM kernel class to call internal classlib API?

2006-07-11 Thread Oliver Deakin
Andrey Chernyshev wrote: On 7/10/06, Oliver Deakin [EMAIL PROTECTED] wrote: Andrey Chernyshev wrote: snip Thanks Oliver, this explanation sounds reasonable. If the issue is just in the shutdown hooks order, then, still may be it makes sense to add VM.addClasslibShutdownHook(Runnable) method

Re: [DRLVM] GC/VM interface discussion

2006-07-11 Thread Ivan Volosyuk
On 7/11/06, Xiao-Feng Li [EMAIL PROTECTED] wrote: Ivan, GCExport Managed_Object_Handle gc_alloc_pinned(); This API is currently unused. How about we dump it for now? (NOTE: MMTk has the concept of immortal space. Immortal space is never collected, never moved, only traced. Maybe

[classlib][security]unexpected null for java.security.UnresolvedPermission.getUnresolvedCerts()

2006-07-11 Thread Tim Ellison
Boris Kuznetsov (JIRA) wrote: [ http://issues.apache.org/jira/browse/HARMONY-734?page=comments#action_12420271 ] Boris Kuznetsov commented on HARMONY-734: - The method getUnresolvedCerts() spec. says: Returns: the signer certificates for

Re: [general] milestones and roadmap (round 1 summary)

2006-07-11 Thread Oliver Deakin
Geir Magnusson Jr wrote: I think this captures the input so far w/ a minimum of editorializing on my part for now :) let me know if anything was left off, or if there are new things to be added Thanks! A useful reminder :) One thing I can think of to be added is improved test coverage - I

Re: [classlib][nio] How to deal with unstable but useful tests?

2006-07-11 Thread Geir Magnusson Jr
Don't we want to be able to tell if a thread is Blocked anyway? geir Tim Ellison wrote: I hadn't appreciated that the read call is blocking... So how about you do the blocking read() in a new thread, then the main thread can poll to wait until the reading thread's state is Blocked, before

Re: [DRLVM] GC/VM interface discussion

2006-07-11 Thread Xiao-Feng Li
On 7/11/06, Ivan Volosyuk [EMAIL PROTECTED] wrote: GCExport void gc_write_barrier(Managed_Object_Handle p_base_of_obj_with_slot); This is a difficult API. For starts, it only applies to write barriers written in C/asm. Its not usable by MMTk. C Write barriers that also need

Re: [classlib][nio] How to deal with unstable but useful tests?

2006-07-11 Thread Andrew Zhang
On 7/11/06, Paulex Yang [EMAIL PROTECTED] wrote: Andrew, The AsyncCloseException is actually thrown by AbstractInterruptibleChannel.end(), so probably you actually want to test is if DatagramChannel.read() invokes begin()/end() as below: try{ begin(); complete = doSomeIO(); }finally{

Re: [classlib] debug compilation as default

2006-07-11 Thread Oliver Deakin
Mark Hindess wrote: On 11 July 2006 at 16:42, Ivan Volosyuk [EMAIL PROTECTED] wrote: [snip] Working on it. Not sure I like the way make is called from ant build. Here is an example: (from modules/luni/build.xml) target name=clean.native if=is.windows exec failonerror=true

Re: [classlib] crypto2

2006-07-11 Thread Mikhail Loenko
I think no 2006/7/11, Tim Ellison [EMAIL PROTECTED]: Thanks Boris/Mikhail. Anything else we want to take across? Regards, Tim Mikhail Loenko wrote: I'll merge that method to crypto Mikhail 2006/7/11, Boris Kuznetsov [EMAIL PROTECTED]: Implementation of

Re: [classlib] debug compilation as default

2006-07-11 Thread Mark Hindess
On 11 July 2006 at 13:56, Mark Hindess [EMAIL PROTECTED] wrote: On 11 July 2006 at 16:42, Ivan Volosyuk [EMAIL PROTECTED] wrote: [snip] Working on it. Not sure I like the way make is called from ant build. Here is an example: (from modules/luni/build.xml) target

Re: [classlib] debug compilation as default

2006-07-11 Thread Mark Hindess
On 11 July 2006 at 14:46, Mark Hindess [EMAIL PROTECTED] wrote: On 11 July 2006 at 13:56, Mark Hindess [EMAIL PROTECTED] wrote: On 11 July 2006 at 16:42, Ivan Volosyuk [EMAIL PROTECTED] wrote: [snip] Working on it. Not sure I like the way make is called from ant build. Here

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

2006-07-11 Thread Mark Hindess
I've checked in a script so that: svn co ... classlib cd classlib ant fetch-depends sh depends/libs/build/fetch-awt-depends.sh ant -Dwith.awt.swing=true rebuild should work on Debian Linux. Updates for other distributions would be very welcome. Any update on what to do on Windows?

Re: [build-test-infra] Build Test Infrastructure

2006-07-11 Thread Richard Liang
Geir Magnusson Jr wrote: Richard Liang wrote: It seems that JAVA_HOME is required by cc/cruisecontrol.sh on my Ubuntu :-) Do I miss something? Thanks a lot. That seems to be the case :) If you set it, does it work? Yes, It works :-) It seems to want it for two things,

Re: [DRLVM] GC/VM interface discussion

2006-07-11 Thread Salikh Zakirov
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 be suboptimal in that case. In fact, gc_alloc_pinned() is not intended to be equivalent to

Re: [classlib] crypto2

2006-07-11 Thread Tim Ellison
ok -- well it is not participating in the build anyway, so I'll move it into the enhanced/classlib/archive and if anyone shows up that wants more they can merge it from there. Regards, Tim Mikhail Loenko wrote: I think no 2006/7/11, Tim Ellison [EMAIL PROTECTED]: Thanks Boris/Mikhail.

Re: [DRLVM] GC/VM interface discussion

2006-07-11 Thread Salikh Zakirov
Salikh Zakirov wrote: In fact, gc_alloc_pinned() is not intended to be equivalent to gc_alloc() followed by gc_pin() for the following reasons And one more note: gc_alloc_pinned() is not used currently in DRLVM, so all of the reasoning was almost theoretical. (Functions gc_pin() and

Re: [classlib] debug compilation as default

2006-07-11 Thread Ivan Volosyuk
On 7/11/06, Mark Hindess [EMAIL PROTECTED] wrote: On 11 July 2006 at 14:46, Mark Hindess [EMAIL PROTECTED] wrote: On 11 July 2006 at 13:56, Mark Hindess [EMAIL PROTECTED] wrote: On 11 July 2006 at 16:42, Ivan Volosyuk [EMAIL PROTECTED] wrote: [snip] Working on it. Not sure I

Re: [classlib] debug compilation as default

2006-07-11 Thread Matt Benson
--- Ivan Volosyuk [EMAIL PROTECTED] wrote: [SNIP] This macro I decided to use has one difference in usage I wanted to push: property name=make.basedir location=${hy.luni.src.main.native}/ make dir=vmi args=clean/ make dir=luni args=clean/ make dir=launcher

Re: [classlib] debug compilation as default

2006-07-11 Thread Mark Hindess
On 11 July 2006 at 8:37, Matt Benson [EMAIL PROTECTED] wrote: --- Ivan Volosyuk [EMAIL PROTECTED] wrote: [SNIP] This macro I decided to use has one difference in usage I wanted to push: property name=make.basedir location=${hy.luni.src.main.native}/ make dir=vmi

Re: [classlib] debug compilation as default

2006-07-11 Thread Ivan Volosyuk
On 7/11/06, Matt Benson [EMAIL PROTECTED] wrote: --- Ivan Volosyuk [EMAIL PROTECTED] wrote: [SNIP] This macro I decided to use has one difference in usage I wanted to push: property name=make.basedir location=${hy.luni.src.main.native}/ make dir=vmi args=clean/ make

[classlib] Now needs C++ compiler (was svn commit: r420910 ...)

2006-07-11 Thread Mark Hindess
As of this change a C++ compiler is now required by default. As I mentioned previously I will probably convert these to use C since they will probably ultimately become part of luni, but I'm not going to do the same for the AWT natives so a C++ compiler is will be a pre-req from now on.

Re: [classlib] Now needs C++ compiler (was svn commit: r420910 ...)

2006-07-11 Thread Mark Hindess
On 11 July 2006 at 17:22, Mark Hindess [EMAIL PROTECTED] wrote: As of this change a C++ compiler is now required by default. As I mentioned previously I will probably convert these to use C since they will probably ultimately become part of luni, but I'm not going to do the same for the

Re: [classlib][nio] How to deal with unstable but useful tests?

2006-07-11 Thread Tim Ellison
Andrew Zhang wrote: On 7/11/06, Tim Ellison [EMAIL PROTECTED] wrote: I hadn't appreciated that the read call is blocking... So how about you do the blocking read() in a new thread, then the main thread can poll to wait until the reading thread's state is Blocked, before closing the channel

Re: [classlib][nio] How to deal with unstable but useful tests?

2006-07-11 Thread Tim Ellison
Geir Magnusson Jr wrote: Don't we want to be able to tell if a thread is Blocked anyway? Do you mean on a monitor (=yes) or in the OS? The VM may choose to do deadlock detection etc. but the classlib doesn't care. Regards, Tim Tim Ellison wrote: I hadn't appreciated that the read call is

[classlib][beans] StatementTest - bug in RI?

2006-07-11 Thread Alexei Zakharov
Hi, Devoted to Harmony java.beans guru and others. ) While trying to enable tests from org.apache.harmony.beans.tests.java.beans.StatementTest I have faced the strange problem. It seems that while building Statement for accessing array elements RI doesn't check the number of parameters of get()

Re: [classlib] Method and format of java.util.concurrent proposal

2006-07-11 Thread Tim Ellison
Nathan Beyer wrote: I'm getting close to having the initial proposal for integrating the java.util.concurrent code from Doug Lea's web site for Harmony's class library complete and need a few questions answered. Can you give us a clue about what you are doing/thinking? I'm assuming that we

[classlib][lang] unexpected NegativeArraySizeException for java.lang.String(int[], 2, Integer.MAX_VALUE)

2006-07-11 Thread Tim Ellison
I'm going to fix this simple bug in the String class logic. It doesn't involve a shape change for String so should be uncontroversial -- but squeal if you object. Regards, Tim Vladimir Ivanov (JIRA) wrote: [classlib][lang] unexpected NegativeArraySizeException for java.lang.String(int[], 2,

Re: [classlib][beans] StatementTest - bug in RI?

2006-07-11 Thread Tim Ellison
Yeah, leave Harmony throwing NoSuchMethod' and log it as a non-bug difference. Regards, Tim Alexei Zakharov wrote: Hi, Devoted to Harmony java.beans guru and others. ) While trying to enable tests from org.apache.harmony.beans.tests.java.beans.StatementTest I have faced the strange

Re: [classlib] Method and format of java.util.concurrent proposal

2006-07-11 Thread Andrey Chernyshev
On 7/11/06, Tim Ellison [EMAIL PROTECTED] wrote: Nathan Beyer wrote: I'm getting close to having the initial proposal for integrating the java.util.concurrent code from Doug Lea's web site for Harmony's class library complete and need a few questions answered. Can you give us a clue about

Re: [DRLVM] GC/VM interface discussion

2006-07-11 Thread Geir Magnusson Jr
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 be suboptimal in that case. In fact, gc_alloc_pinned() is not intended to

Re: [classlib] internationalization

2006-07-11 Thread Geir Magnusson Jr
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 modifications. To avoid duplication of Msg class I'd

Re: [classlib] internationalization

2006-07-11 Thread Alexey Petrenko
As far as I understood Ilya agreed on new Eclipse style... Ilya? 2006/7/11, Geir Magnusson Jr [EMAIL PROTECTED]: 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

Re: Re: [build-test-infra] Build Test Infrastructure

2006-07-11 Thread Alex Blewitt
FWIW Mac OS X doesn't have tools.jar in $JAVA_HOME/lib. Instead, the tools are in the classes.jar file (no, it's not called rt.jar either) in $JAVA_HOME/../Classes/classes.jar. It's a bit unfortunate that it has both the run-time libraries and the tools in one place, but essentially it means that

Re: [build-test-infra] Build Test Infrastructure

2006-07-11 Thread Geir Magnusson Jr
Alex Blewitt wrote: FWIW Mac OS X doesn't have tools.jar in $JAVA_HOME/lib. Instead, the tools are in the classes.jar file (no, it's not called rt.jar either) in $JAVA_HOME/../Classes/classes.jar. It's a bit unfortunate that it has both the run-time libraries and the tools in one place, but

Re: [DRLVM] GC/VM interface discussion

2006-07-11 Thread Xiao-Feng Li
On 7/12/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: 1) gc_pin() is optional operation, and may be absent in simplest collectors 2) gc_pin() is not required to succeed, and the GC may decide to reject object pinning (e.g. based on some memory footprint/performance compromise). The

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

2006-07-11 Thread Andrew Zhang
Hi Mikhail, It's a NON-NLS message. Native code is designed in this way. Currently, Harmony socket native code uses messages in SocketException to identify error type. To avoid the confusion, two alternatives way I could image are: 1. Native code returns platform-independent error code. 2.

Re: [classlib][nio] How to deal with unstable but useful tests?

2006-07-11 Thread Andrew Zhang
On 7/12/06, Tim Ellison [EMAIL PROTECTED] wrote: Andrew Zhang wrote: On 7/11/06, Tim Ellison [EMAIL PROTECTED] wrote: I hadn't appreciated that the read call is blocking... So how about you do the blocking read() in a new thread, then the main thread can poll to wait until the reading

Re: [DRLVM] GC/VM interface discussion

2006-07-11 Thread Robin Garner
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 be suboptimal in that case. In fact, gc_alloc_pinned() is not

Re: [DRLVM] GC/VM interface discussion

2006-07-11 Thread Robin Garner
Xiao-Feng Li wrote: On 7/11/06, Ivan Volosyuk [EMAIL PROTECTED] wrote: GCExport void gc_write_barrier(Managed_Object_Handle p_base_of_obj_with_slot); This is a difficult API. For starts, it only applies to write barriers written in C/asm. Its not usable by MMTk. C Write

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

2006-07-11 Thread Nathan Beyer
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. The README gives a high level overview of the content. I've generated some documentation and published it here for easier

Re: [DRLVM] GC/VM interface discussion

2006-07-11 Thread Weldon Washburn
On 7/11/06, Xiao-Feng Li [EMAIL PROTECTED] wrote: On 7/12/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: 1) gc_pin() is optional operation, and may be absent in simplest collectors 2) gc_pin() is not required to succeed, and the GC may decide to reject object pinning (e.g. based on

Re: [DRLVM] GC/VM interface discussion

2006-07-11 Thread Weldon Washburn
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 be suboptimal in that

Re: [classlib] internationalization

2006-07-11 Thread Alexey Varlamov
-1 for hardcoded English messages. This introduces need for special handling of certain locales and increases memory waste for non-English locales. 2006/7/10, Alexey Petrenko [EMAIL PROTECTED]: As evolution of this idea I can suggest to create Messages class with English messages instead of

Re: [DRLVM] GC/VM interface discussion

2006-07-11 Thread Weldon Washburn
On 7/11/06, Robin Garner [EMAIL PROTECTED] wrote: Xiao-Feng Li wrote: On 7/11/06, Ivan Volosyuk [EMAIL PROTECTED] wrote: GCExport void gc_write_barrier(Managed_Object_Handle p_base_of_obj_with_slot); This is a difficult API. For starts, it only applies to write barriers written

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

2006-07-11 Thread Mikhail Loenko
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 SocketException to identify error type. To avoid the confusion, two alternatives way I could image are: 1. Native code