You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Mikhail Fursov <mi...@gmail.com> on 2007/02/05 12:40:58 UTC

[drlvm] Enabling vmmagic support on 64bit OS - need package update to the latest version

All,
I'm working on EM64T vmmagics enabling and faced the problem that JAR we use
contains files that are not ready for 64-bit OS support.
For example there is no way to create Address from long. This means that
there is no way to create meaningful Address instance on 64bit platfrom at
all.
I checked the latest JikesRVM source and found all 64-bits methods I need.

Porting magics to 64bit platform and enabling helpers inlining in all modes
we have is not a task we can postpone for a months, so we have to do
something to get the methods we need in our codebase.

I see 2 solutions:
1) Robin can update mmtk jar we use to the latest version. This is the best
choice because he is one of the authors.
2) I can do it by myself: get the JikesRVM copy and update our JAR.

What will we do?

-- 
Mikhail Fursov

Re: [drlvm] Enabling vmmagic support on 64bit OS - need package update to the latest version

Posted by Mikhail Fursov <mi...@gmail.com>.
Robin,
thanks, this is exactly what we need.
I'm going to prepare a patch with migration from Exception-based to
Annotation-based pragmas this week and we migrate to the updated vmmagic
jar.

On 2/6/07, Robin Garner <ro...@anu.edu.au> wrote:
>
> Hi Mike,
>
> As you have seen, since the last time I posted an MMTk jar file, vmmagic
> has been split out as a separate JikesRVM subproject.
>
> I've put the file vmmagic-20070207 on my web page.  I expect this will
> be very close to the jar file that will be distributed on vmmagic.org.
>
> cheers
>
> Mikhail Fursov wrote:
> > Actually the only diff we need today is to add a single  method:
> >  /**
> >   * Fabricate an <code>Address</code> instance from a long
> >   *
> >   * @param address the long from which to create an <code>Address</code>
> >   *          instance
> >   * @return An address instance
> >   */
> >  public static Address fromLong(long address) {
> >    return null;
> >  }
> >
> > So, if Robin can add this method to Address class and put a new version
> of
> > JAR to his site this is enough.
> >
> > Another proposal about this JAR: AFAIK we need only 'org.vmmagic'
> > package in
> > the JAR. Can we remove all other stuff from it and decrease the JAR size
> > from 1M to 10k?
> >
> >
> > On 2/5/07, Mikhail Fursov <mi...@gmail.com> wrote:
> >>
> >> All,
> >> I'm working on EM64T vmmagics enabling and faced the problem that JAR
> we
> >> use contains files that are not ready for 64-bit OS support.
> >> For example there is no way to create Address from long. This means
> that
> >> there is no way to create meaningful Address instance on 64bit
> >> platfrom at
> >> all.
> >> I checked the latest JikesRVM source and found all 64-bits methods I
> >> need.
> >>
> >> Porting magics to 64bit platform and enabling helpers inlining in all
> >> modes we have is not a task we can postpone for a months, so we have
> >> to do
> >> something to get the methods we need in our codebase.
> >>
> >> I see 2 solutions:
> >> 1) Robin can update mmtk jar we use to the latest version. This is the
> >> best choice because he is one of the authors.
> >> 2) I can do it by myself: get the JikesRVM copy and update our JAR.
> >>
> >> What will we do?
> >>
> >> --
> >> Mikhail Fursov
> >
> >
> >
> >
>
>
> --
> Robin Garner
> Dept. of Computer Science
> Australian National University
> http://cs.anu.edu.au/people/Robin.Garner/
>



-- 
Mikhail Fursov

Re: [drlvm] Enabling vmmagic support on 64bit OS - need package update to the latest version

Posted by Robin Garner <ro...@anu.edu.au>.
Hi Mike,

As you have seen, since the last time I posted an MMTk jar file, vmmagic 
has been split out as a separate JikesRVM subproject.

I've put the file vmmagic-20070207 on my web page.  I expect this will 
be very close to the jar file that will be distributed on vmmagic.org.

cheers

Mikhail Fursov wrote:
> Actually the only diff we need today is to add a single  method:
>  /**
>   * Fabricate an <code>Address</code> instance from a long
>   *
>   * @param address the long from which to create an <code>Address</code>
>   *          instance
>   * @return An address instance
>   */
>  public static Address fromLong(long address) {
>    return null;
>  }
> 
> So, if Robin can add this method to Address class and put a new version of
> JAR to his site this is enough.
> 
> Another proposal about this JAR: AFAIK we need only 'org.vmmagic' 
> package in
> the JAR. Can we remove all other stuff from it and decrease the JAR size
> from 1M to 10k?
> 
> 
> On 2/5/07, Mikhail Fursov <mi...@gmail.com> wrote:
>>
>> All,
>> I'm working on EM64T vmmagics enabling and faced the problem that JAR we
>> use contains files that are not ready for 64-bit OS support.
>> For example there is no way to create Address from long. This means that
>> there is no way to create meaningful Address instance on 64bit 
>> platfrom at
>> all.
>> I checked the latest JikesRVM source and found all 64-bits methods I 
>> need.
>>
>> Porting magics to 64bit platform and enabling helpers inlining in all
>> modes we have is not a task we can postpone for a months, so we have 
>> to do
>> something to get the methods we need in our codebase.
>>
>> I see 2 solutions:
>> 1) Robin can update mmtk jar we use to the latest version. This is the
>> best choice because he is one of the authors.
>> 2) I can do it by myself: get the JikesRVM copy and update our JAR.
>>
>> What will we do?
>>
>> -- 
>> Mikhail Fursov
> 
> 
> 
> 


-- 
Robin Garner
Dept. of Computer Science
Australian National University
http://cs.anu.edu.au/people/Robin.Garner/

Re: [drlvm] Enabling vmmagic support on 64bit OS - need package update to the latest version

Posted by Mikhail Fursov <mi...@gmail.com>.
Actually the only diff we need today is to add a single  method:
  /**
   * Fabricate an <code>Address</code> instance from a long
   *
   * @param address the long from which to create an <code>Address</code>
   *          instance
   * @return An address instance
   */
  public static Address fromLong(long address) {
    return null;
  }

So, if Robin can add this method to Address class and put a new version of
JAR to his site this is enough.

Another proposal about this JAR: AFAIK we need only 'org.vmmagic' package in
the JAR. Can we remove all other stuff from it and decrease the JAR size
from 1M to 10k?


On 2/5/07, Mikhail Fursov <mi...@gmail.com> wrote:
>
> All,
> I'm working on EM64T vmmagics enabling and faced the problem that JAR we
> use contains files that are not ready for 64-bit OS support.
> For example there is no way to create Address from long. This means that
> there is no way to create meaningful Address instance on 64bit platfrom at
> all.
> I checked the latest JikesRVM source and found all 64-bits methods I need.
>
> Porting magics to 64bit platform and enabling helpers inlining in all
> modes we have is not a task we can postpone for a months, so we have to do
> something to get the methods we need in our codebase.
>
> I see 2 solutions:
> 1) Robin can update mmtk jar we use to the latest version. This is the
> best choice because he is one of the authors.
> 2) I can do it by myself: get the JikesRVM copy and update our JAR.
>
> What will we do?
>
> --
> Mikhail Fursov




-- 
Mikhail Fursov