[classlib][sql] RI forgets to throw the exception?

2007-05-09 Thread LvJimmyJing
Hi All, I meet something interesting when I try to improve/fix a bug on javax.sql.rowset.serial.SerialJavaObject, the Spec reads: (The constructor) "public SerialJavaObject(Object obj) throws SerialException ... Throws: SerialException - if the object is found to be unseria

Re: problem about System.loadLibrary and object's address

2007-04-29 Thread LvJimmyJing
Jimmy, it's possible to insert free() automatically in jitted code to reclaim some short-lived objects. This can be a supplementary to the GC, and probably improve the overall performance. Tingpeng had previous discussions with me on this topic actually. Sorry I don't know the context. So th

Re: problem about System.loadLibrary and object's address

2007-04-29 Thread LvJimmyJing
2007/4/29, Tingpeng Wu <[EMAIL PROTECTED]>: - Original Message - From: "LvJimmy,Jing" <[EMAIL PROTECTED]> To: Sent: Sunday, April 29, 2007 5:24 PM Subject: Re: problem about System.loadLibrary and object's address > 2007/4/29, Tingpeng Wu <[EMAIL PROT

Re: problem about System.loadLibrary and object's address

2007-04-29 Thread LvJimmyJing
2007/4/29, Tingpeng Wu <[EMAIL PROTECTED]>: Hi, xiaofeng, 1. I also feel very unnatural to call it through MyRuntime class, but I don't know how to call it directly. Since drlvm needs HotSpot to help it to compile the java source code, if I don't call it though an instance, the HotSpot couldn

Re: problem about System.loadLibrary and object's address

2007-04-29 Thread LvJimmyJing
2007/4/29, 吴廷鹏 <[EMAIL PROTECTED]>: Hi, all, when I use drlvm to execute my program, I found that when program has System.loadLibrary call, there is always an error which reports "java.lang.outofmemoryerror ". The same program can run on Hotspot. Why this happens and how to solve it? Another qu

Re: [jira] Created: (HARMONY-2321) [classlib] Launcher fails to find properties location when bad -Djava.home is specified on the command line

2007-04-29 Thread LvJimmyJing
Agreed, it is strange that Harmony need correct java.home property to execute as it is not necessary for RI. 2007/4/29, Tony Wu <[EMAIL PROTECTED]>: Hi all, I agree with Gregory that this system is wrong, but I think the root cause is not in the launcher. If we ignore the java.home passed on cmd

Re: [classlib][sql] Propose to complete API coverage of sql (javax.sql.rowset, javax.sql.rowset.serial, etc)

2007-04-23 Thread LvJimmyJing
rote: > Sounds interesting. I've gone through the api difference page and found > javax.sql.rowset.RowSetMetaDataImpl is missing in Harmony code. > > I'd like to implement this class first :-) > > LvJimmy,Jing wrote: > > Hi, > > > > I've noticed that AP

[classlib][sql] Propose to complete API coverage of sql (javax.sql.rowset, javax.sql.rowset.serial, etc)

2007-04-22 Thread LvJimmyJing
Hi, I've noticed that APIs of javax.sql.rowset and javax.sql.rowset.serial are still missing. Currently, the results of API comparison[1] show that javax.sql.rowset is missing one class, and javax.sql.rowset.serial has 22 bad methods, missing 59 methods and 6 constructors. And I guess there'

Re: [classlib][performance] Harmony's great performance of ArrayList.add(int index, Object element)

2007-04-20 Thread LvJimmyJing
Sounds great :D Yes, I guess in many field Harmony works quiet well ( IIRC, we harmony people already do some micro benchmark and get happy result, right?) 2007/4/20, Andrew Zhang <[EMAIL PROTECTED]>: Hey guys, I wrote a small performance benchmark for testing List.add(int index, Object element

Re: [classlib][luni] new test in tests.api.java.net.SocketTest failed on my Windows XP sp2

2007-04-19 Thread LvJimmyJing
2007/4/19, Leo Li <[EMAIL PROTECTED]>: Hi, Andrew: Actually, the Support_PortManager works as you suggest.:) But shall we wait a little before starting test, due to the half-close mechanism of TCP. That is three times of RTTI or something... I do not remember clearly. Yes, un-f

Re: [classlib]complete java 6 api(Agreement and call for volunteers)

2007-04-19 Thread LvJimmyJing
2007/4/18, Alexey Petrenko <[EMAIL PROTECTED]>: 2007/4/18, Tony Wu <[EMAIL PROTECTED]>: > Thanks Stepan and all the people who helped to boost, now we have a > branch for java 6 classlib. > > Before we start to complete the new feature, I think we should have an > agreement addition to Good issue

Re: [classlib]complete java 6 api(Agreement and call for volunteers)

2007-04-19 Thread LvJimmyJing
Sounds great :) 2007/4/18, Tony Wu <[EMAIL PROTECTED]>: Thanks Stepan and all the people who helped to boost, now we have a branch for java 6 classlib. Before we start to complete the new feature, I think we should have an agreement addition to Good issue resolution guideline[1]. I just draft

Re: [classlib][luni] new test in tests.api.java.net.SocketTest failed on my Windows XP sp2

2007-04-19 Thread LvJimmyJing
2007/4/19, Andrew Zhang <[EMAIL PROTECTED]>: On 4/19/07, Ruth Cao <[EMAIL PROTECTED]> wrote: > > Tim Ellison wrote: > > Ruth Cao wrote: > > > >> You are right, Vladimir. > >> > >> It is just because the 'port' variable is set to 8080 and on some > >> machines this port has already been occupied.

Re: [classlib][luni] new test in tests.api.java.net.SocketTest failed on my Windows XP sp2

2007-04-19 Thread LvJimmyJing
2007/4/19, Andrew Zhang <[EMAIL PROTECTED]>: On 4/19/07, Leo Li <[EMAIL PROTECTED]> wrote: > > Personally I prefer Support_PortManager. As a tool, it can rescue us from > choosing specific port to use. Despite of its defect, I believe it is > possible to innovate it to fullfill our demand. From m

Re: [classlib][luni] new test in tests.api.java.net.SocketTest failed on my Windows XP sp2

2007-04-18 Thread LvJimmyJing
In this case, I guess the rarely used port may be suitable, though it is not perfect and may cause failure (in very little possibility?) Or let's make the test as a special test, as exclude test, or manual test? I suggest we should never use Support_PortManager any more. 2007/4/19, Ruth Cao <[EM

Re: [classlib][nio] we may add Re: [jira] Commented: (HARMONY-3591) [classlib][nio] Can't run simple 3D HWA application using lwjgl library

2007-04-18 Thread LvJimmyJing
Thanks Alexey, the test passed, so I'd like to upload the patch then :) 2007/4/17, Alexey Varlamov <[EMAIL PROTECTED]>: Does the built DRLVM ever works - e.g. HWA passes? BTW, there is a regression test which can be run easy: build.bat -Dtest.case=H3591 reg.test 2007/4/17, LvJimmy,J

Re: [classlib][luni] new test in tests.api.java.net.SocketTest failed on my Windows XP sp2

2007-04-17 Thread LvJimmyJing
This method is good, but not perfect, for 1. getNextPortsForUDP get a free port by a mechanism "get and release", but release the port may not be successful (e.g, in linux) 2. even it releases successfully, during the period between utility method "release" and serversocket reuse it, there may be

Re: [classlib][luni] new test in tests.api.java.net.SocketTest failed on my Windows XP sp2

2007-04-17 Thread LvJimmyJing
An old problem that we already noticed, I guess still there's a lot of tests using getNextPort(). +1 for using port 0 2007/4/18, Nathan Beyer <[EMAIL PROTECTED]>: For the slow (and lazy), can you point me to one of the tests that just uses port 0. Thanks. -Nathan On 4/17/07, Tim Ellison <[EMA

Re: [classlib][nio] we may add Re: [jira] Commented: (HARMONY-3591) [classlib][nio] Can't run simple 3D HWA application using lwjgl library

2007-04-16 Thread LvJimmyJing
, Alexey Varlamov <[EMAIL PROTECTED]>: Please go ahead. 2007/4/13, LvJimmy,Jing <[EMAIL PROTECTED]>: > That's for sure :) > My plan was: > 1. create those DirectBufferAdapters > 2. in the BaseByteBuffer, return the wrapped DirectBufferAdapters if and only > if the B

Re: [DRLVM]Do we have a easier way to build DRLVM?

2007-04-16 Thread LvJimmyJing
I guess. But to modify the file works for me > anyway.) > > For classlib location, there is a file > working_vm\build\drlvm.properties.example for it. You can modify it to > point the classlib location to the right directory and copy it to > drlvm.properties (to be functional). > &g

Re: [DRLVM]Do we have a easier way to build DRLVM?

2007-04-16 Thread LvJimmyJing
asslib location to the right directory and copy it to drlvm.properties (to be functional). Hope this helps. Thanks. xiaofeng On 4/16/07, LvJimmy,Jing <[EMAIL PROTECTED]> wrote: > Hi, > I'm trying to download DRLVM and build it on my desktop (windows > xp sp2, try

[DRLVM]Do we have a easier way to build DRLVM?

2007-04-16 Thread LvJimmyJing
Hi, I'm trying to download DRLVM and build it on my desktop (windows xp sp2, try for regression test of the refactor for HARMONY-3591 as we discussed on an earlier thread), but I meet some problem: When I first download DRLVM trunk from svn, and enter "build.bat", it ask for "../../working

Re: [classlib][nio] we may add Re: [jira] Commented: (HARMONY-3591) [classlib][nio] Can't run simple 3D HWA application using lwjgl library

2007-04-13 Thread LvJimmyJing
st to make sure it works. Does it make sense? Thanks :) 2007/4/13, Mikhail Fursov <[EMAIL PROTECTED]>: Jimmy, Will the initial test work with your solution? On 4/13/07, LvJimmy,Jing <[EMAIL PROTECTED]> wrote: > > Hi, >I've just read the patch for this JIRA, I f

[classlib][nio] we may add Re: [jira] Commented: (HARMONY-3591) [classlib][nio] Can't run simple 3D HWA application using lwjgl library

2007-04-12 Thread LvJimmyJing
Hi, I've just read the patch for this JIRA, I find it workable, but may need some enhancement for: 1. IntToByteBufferAdapter (and all related adapters) may not be DirectBuffer, let it implement DirectBuffer does not make sense. 2. all DirectBuffer methods implemented in these classes, e.g, g

Re: [vote] Create SVN branch for Java 6 development

2007-04-11 Thread LvJimmyJing
+1 :) 2007/4/12, Stepan Mishura <[EMAIL PROTECTED]>: +1 -Stepan. On 4/12/07, Stepan Mishura wrote: > The subject was discussed a lot in threads: > - [OT] JFYI: Dave Gilbert (jfree.org) on Apache Harmony > - [classlib]proposal: java6 kick off! > > I think that it is better to make it a clear vo

Re: [classlib][luni]Delete DatagramSocket.isMulticastSocket?

2007-04-10 Thread LvJimmyJing
Offset (long). So i suggest delete them together, if no one objects. 2007/4/5, Leo Li <[EMAIL PROTECTED]>: > +1 > Delete them if they are dead code.:) > > > On 4/4/07, LvJimmy,Jing <[EMAIL PROTECTED]> wrote: > > > > I find another un-used method, Channels.wr

Re: Happy Birthday Tim Ellison!

2007-04-09 Thread LvJimmyJing
Happy Birthday Tim! Do we have any gift for him? :P 2007/4/9, Geir Magnusson Jr. <[EMAIL PROTECTED]>: I figured this will annoy him to no end, but hey, today is his birthday :) Happy Birthday Tim! geir -- Best Regards! Jimmy, Jing Lv China Software Development Lab, IBM

Re: [OT] JFYI: Dave Gilbert (jfree.org) on Apache Harmony

2007-04-08 Thread LvJimmyJing
The article on the blog reads full of jealousy to me :P 2007/4/9, Leo Li <[EMAIL PROTECTED]>: In my opinion, it is the time for us to catch up with Java 6 in order to attract our potential customers. As for branching, almost each apache project maintains branches and they all live well.:) And

Re: [classlib][luni]Delete DatagramSocket.isMulticastSocket?

2007-04-04 Thread LvJimmyJing
;ve raised JIRA-3572 for these issue. 2007/4/4, Ruth Cao <[EMAIL PROTECTED]>: I've also found there is a redundant constructor in java.io.OptionalDataException: OptionalDataException(String). It seems that we can eliminate these methods together :-) LvJimmy,Jing wrote: > Hi All

[classlib][luni]Delete DatagramSocket.isMulticastSocket?

2007-04-03 Thread LvJimmyJing
Hi All, I happen to meet a package private method of DatagramSocket(and its child class MulticastSocket), named isMulticastSocket. I search in the luni package but find no line refers to this method. And a simple search in native code shows no native code refers to this method by reflection.

Re: [Classlib][General] Looking for some profiler tools to use

2007-04-03 Thread LvJimmyJing
o select the JRE to use from the GUI so that you can run directly from the workbench. The launch configurations have been undergoing some updates recently and I don't see the dialog at the moment. Regards, Chris Elford Intel SSG/Enterprise Solutions Software Division -Original

Re: [Classlib][General] Looking for some profiler tools to use

2007-03-30 Thread LvJimmyJing
e.org/tptp/platform/documents/tutorials/jvmti/Java_Application_Profiling_using_TPTP-r4-3.html On 3/30/07, LvJimmy,Jing <[EMAIL PROTECTED]> wrote: > 2007/3/30, LvJimmy,Jing <[EMAIL PROTECTED]>: > > Hi All, > > Harmony has reach 95% API coverage, IMHO it may be a good time to > >

Re: [Classlib][General] Looking for some profiler tools to use

2007-03-29 Thread LvJimmyJing
2007/3/30, LvJimmy,Jing <[EMAIL PROTECTED]>: Hi All, Harmony has reach 95% API coverage, IMHO it may be a good time to start performance profiler/tuning. If so, I'd like to do some performance profiler on Harmony Classlib from now on ;) In order to look for performance bot

[Classlib][General] Looking for some profiler tools to use

2007-03-29 Thread LvJimmyJing
Hi All, Harmony has reach 95% API coverage, IMHO it may be a good time to start performance profiler/tuning. If so, I'd like to do some performance profiler on Harmony Classlib from now on ;) In order to look for performance bottleneck, we need some profiler tools. I've looked for some prof

Re: [announce] New Apache Harmony Committer : Xiao-Feng Li

2007-02-22 Thread LvJimmyJing
Though a bit late, Congratulations! :) 2007/2/19, Geir Magnusson Jr. <[EMAIL PROTECTED]>: Please join the Apache Harmony PMC in welcoming the project's newest committer, Xiao-Feng Li. Xiao-Feng has shown sustained dedication to the project, especially in the area GC and other VM issues, an abil

Re: [announcement] Still more new PMC members for Apache Harmony :)

2007-02-22 Thread LvJimmyJing
Congratulations! 2007/2/19, Geir Magnusson Jr. <[EMAIL PROTECTED]>: The Apache Harmony PMC is happy to announce that the following committers have been added to the Harmony PMC : Oliver Deakin Nadya Morozova Congratulations, and thanks for the good work! The Apache Harmony PMC -- Best

Re: [announcement] New PMC Members for Apache Harmony

2007-02-22 Thread LvJimmyJing
Though a bit late, congratulations! :) 2007/2/19, Mark Hindess <[EMAIL PROTECTED]>: Congratulations! -Mark On 17 February 2007 at 13:47, "Geir Magnusson Jr." <[EMAIL PROTECTED]> wrote: > The Apache Harmony PMC is happy to announce that the following > committers have been added to the Harmony

Re: [classlib][porting] Ports to Linux PPC 32/64, zLinux 31 and AIX PPC 64

2007-02-09 Thread LvJimmyJing
Cool ! :) zLinux31may be hard work to do. And I think classlib native may also meet some problem on 31bit calculation, so please share experience during the zLinux31 porting :) 2007/2/8, Oliver Deakin <[EMAIL PROTECTED]>: Hi all, Just a heads up on some of the work that Mark and I have been doi

Re: [jira] Commented: (HARMONY-1494) [classlib][luni] FileDescriptor.sync() throws unexpected SyncFailedException when the descriptor is read-only.

2007-02-09 Thread LvJimmyJing
2007/2/9, Andrew Zhang <[EMAIL PROTECTED]>: Hi, Sorry for my late reply. Unfortunately, my disk got broken so that my working on Harmony is stopped. I hope I'll resume developing soon. ;) Ruth, Thanks for your patch! There're two ways to solve this problem: 1. Using a boolean to mark whether

[VM]take action for native memory control (was: Re: [VM]How to trigue GC while free native memory is low.)

2007-02-09 Thread LvJimmyJing
Hi All, I open a new thread for this topic as I'd like to take action for this. As RI behaves different from Harmony (it never throw that memory-out-error), it should be a bug of Harmony and we should fix it, so I open a JIRA, HARMONY-3148 to record this bug and action on it. Up to now, I se

Re: [VM]How to trigue GC while free native memory is low.

2007-02-02 Thread LvJimmyJing
2007/2/2, Xiao-Feng Li <[EMAIL PROTECTED]>: Thank you, Jimmy and Leo, for the clear explanations. I think temporarily you can put the System.gc() there to workaround this issue. Yes, this is only a workaround since we cannot rely on it without explicit guarantee in its semantics. To really solv

Re: [VM]How to trigue GC while free native memory is low.

2007-02-02 Thread LvJimmyJing
2007/2/3, Ivan Volosyuk <[EMAIL PROTECTED]>: Let me summarize: Sometimes we have small java heap objects which relates to much bigger native memory chunks. In some cases this memory may exceed limits and VM will crash. Calling GC from the other side will make this memory free. There are quite a

Re: [VM]How to trigue GC while free native memory is low.

2007-02-02 Thread LvJimmyJing
2007/2/2, Xiao-Feng Li <[EMAIL PROTECTED]>: Leo, I can't fully understand your problem and proposal. I am working in DRLVM GC component, I want to understand how GC can tackle the issue you meet. You said the native memory is allocated (probably with malloc) for byte buffer. I wonder how the pro

Re: [VM]How to trigue GC while free native memory is low.

2007-02-02 Thread LvJimmyJing
2007/2/2, Leo Li <[EMAIL PROTECTED]>: Hi, all: After applying patch3073, I added the support for direct byte buffer in nio module as spec requires. But now here exists a problem: The native memory allocated to the byte buffer can be released when gc releases the byte buffer object, however, i

Re: [classlib] rename "jcl" to "harmony"?

2007-01-23 Thread LvJimmyJing
ng id caching and avoiding calling reflection each time is > able to improve our performance, which will become one of the focuses > for our customers. >Besides, "Harmony" or "hy" are both good substitutes for"jcl". >And I am willing to work with

Re: [classlib] rename "jcl" to "harmony"?

2007-01-23 Thread LvJimmyJing
Besides, "Harmony" or "hy" are both good substitutes for"jcl". >And I am willing to work with you on the issue. > > Good luck! > Leo. > > On 1/23/07, LvJimmy,Jing <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > Loo

[classlib] rename "jcl" to "harmony"?

2007-01-22 Thread LvJimmyJing
Hi all, Looking into luni native code, I find its reflection caching is disabled, I'd like to enable it to improve Harmony performance. Native reflection caching is to cache reflection method/field id of some classes which is used frequently in native, this mechanism avoid reflect some id

Re: [classlib][nio]Volunteer to add support for direct byte buffer in nio channels read/write operation.

2007-01-22 Thread LvJimmyJing
Sounds interesting, I'd like to take a look. I believe most of work can be done after some refactor on native code :) 2007/1/23, Leo Li <[EMAIL PROTECTED]>: Hi, all: According to spec, "the Java virtual machine will make a best effort to perform native I/O operations directly upon it. That

Re: [OT] HUG (Harmony User Group) in China?

2007-01-21 Thread LvJimmyJing
Sounds perfect :D 2007/1/22, Geir Magnusson Jr. <[EMAIL PROTECTED]>: On Jan 19, 2007, at 8:22 PM, Yu Zhang wrote: > I'm from USTC in Hefei, Anhui. It is hard to get together in one > city in the near future. One solution for this would be to have a kickoff meeting somewhere you all agree on,

Re: [vote] HARMONY-1407 : contribution of code for java.lang.management

2007-01-08 Thread LvJimmyJing
+1 2007/1/5, Geir Magnusson Jr. <[EMAIL PROTECTED]>: We now have all requisite paperwork (CCLA, BCC, ACQs) in place for http://issues.apache.org/jira/browse/HARMONY-1407, so lets vote to accept : [ ] +1 Accept this contribution [ ] -1 Reject because... As usual, 3 days unless someone complains

[OT]Happy New Year

2006-12-30 Thread LvJimmyJing
Everyone, happy and harmony new year! ;) -- Best Regards! Jimmy, Jing Lv China Software Development Lab, IBM

Re: [classlib][testing] test failed: org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest

2006-12-14 Thread LvJimmyJing
Hi, Can someone tell me which tests fails,and the detail runtime environment? I run HttpURLConnectionTest on winxp/IBMVME and ubunto/IBMVME serveral times and find no failure. Do the failures happens only recently? 2006/12/13, Vladimir Ivanov <[EMAIL PROTECTED]>: On 12/13/06, Tim Ellison