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
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
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()
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
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
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
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
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);
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
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.
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??)
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
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
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
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 :
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]
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]
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
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
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
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
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
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
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
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.
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.
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
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.
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
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
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
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,
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
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
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
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
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
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
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{
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
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
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
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
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?
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,
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
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.
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
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
--- 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
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
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
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.
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
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
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
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()
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
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,
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
-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
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
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
77 matches
Mail list logo