[rvm-core] status of native threading

View: New views
4 Messages — Rating Filter:   Alert me  

[rvm-core] status of native threading

by Filip Pizlo-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

We've committed native threading to the trunk (r15395) and also some  
trivial optimizations (r 15405).  The code seems stable and quite  
fast.  There are some spurious crashes; we're investigating them now.

Our current work plan is as follows:

1) Investigate bugs.

2) Resolve all JIRA subtasks associated with RVM-91.

3) Optimize further where possible.  There are still optimization  
opportunities that have not been exploited, for example in regards to  
locking, and especially in regards to GC.  There are also places where  
Classpath's native code is being dumb, and with the current framework  
we could easily add hacks to speed it up.

4) Fix MMTk to take advantage of the lack of green threads, and  
streamline it to take allow simpler implementations of concurrent  
collectors.

(4) is already underway in a branch (see branches/RVM-777-
NewMMTkGlue).  (1) and (2) are the top priorities; I'm working on  
those concurrently at the moment.

There is also a potentially related issue:

5) Get harmony to work.

I think this might be easier under native threads, but I also think  
that we may have regressed it slightly.  Ian, what are your thoughts?

Let us know if you observe any outstanding issues with threading that  
aren't already JIRA'd.

-Filip



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Jikesrvm-core mailing list
Jikesrvm-core@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-core

Re: [rvm-core] status of native threading

by Ian Rogers (nabble) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So Harmony class library support is currently completely broken due to
trying to reference the old scheduler code:

http://jikesrvm.anu.edu.au/cattrack/results/cayenne.anu.edu.au/sanity-harmony/7686/BaseBaseCopyMS/Output.txt

I'll see if I can do anything quickly otherwise I'll open a JIRA. Feel
free to also have a look.

Regards,
Ian

On 08/02/2009, Filip Pizlo <pizlo@...> wrote:

> Hi all,
>
> We've committed native threading to the trunk (r15395) and also some
> trivial optimizations (r 15405).  The code seems stable and quite
> fast.  There are some spurious crashes; we're investigating them now.
>
> Our current work plan is as follows:
>
> 1) Investigate bugs.
>
> 2) Resolve all JIRA subtasks associated with RVM-91.
>
> 3) Optimize further where possible.  There are still optimization
> opportunities that have not been exploited, for example in regards to
> locking, and especially in regards to GC.  There are also places where
> Classpath's native code is being dumb, and with the current framework
> we could easily add hacks to speed it up.
>
> 4) Fix MMTk to take advantage of the lack of green threads, and
> streamline it to take allow simpler implementations of concurrent
> collectors.
>
> (4) is already underway in a branch (see branches/RVM-777-
> NewMMTkGlue).  (1) and (2) are the top priorities; I'm working on
> those concurrently at the moment.
>
> There is also a potentially related issue:
>
> 5) Get harmony to work.
>
> I think this might be easier under native threads, but I also think
> that we may have regressed it slightly.  Ian, what are your thoughts?
>
> Let us know if you observe any outstanding issues with threading that
> aren't already JIRA'd.
>
> -Filip
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Jikesrvm-core mailing list
> Jikesrvm-core@...
> https://lists.sourceforge.net/lists/listinfo/jikesrvm-core
>

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Jikesrvm-core mailing list
Jikesrvm-core@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-core

Re: [rvm-core] status of native threading

by Filip Pizlo-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm stuck trying to fix bugs.  If you there's support on my end I can  
add for it, let me know.  In particular, we have those sysPthreadXXX  
calls that should probably be cleaned up, right?

-F



On Feb 8, 2009, at 5:47 PM, Ian Rogers wrote:

> So Harmony class library support is currently completely broken due to
> trying to reference the old scheduler code:
>
> http://jikesrvm.anu.edu.au/cattrack/results/cayenne.anu.edu.au/sanity-harmony/7686/BaseBaseCopyMS/Output.txt
>
> I'll see if I can do anything quickly otherwise I'll open a JIRA. Feel
> free to also have a look.
>
> Regards,
> Ian
>
> On 08/02/2009, Filip Pizlo <pizlo@...> wrote:
>> Hi all,
>>
>> We've committed native threading to the trunk (r15395) and also some
>> trivial optimizations (r 15405).  The code seems stable and quite
>> fast.  There are some spurious crashes; we're investigating them now.
>>
>> Our current work plan is as follows:
>>
>> 1) Investigate bugs.
>>
>> 2) Resolve all JIRA subtasks associated with RVM-91.
>>
>> 3) Optimize further where possible.  There are still optimization
>> opportunities that have not been exploited, for example in regards to
>> locking, and especially in regards to GC.  There are also places  
>> where
>> Classpath's native code is being dumb, and with the current framework
>> we could easily add hacks to speed it up.
>>
>> 4) Fix MMTk to take advantage of the lack of green threads, and
>> streamline it to take allow simpler implementations of concurrent
>> collectors.
>>
>> (4) is already underway in a branch (see branches/RVM-777-
>> NewMMTkGlue).  (1) and (2) are the top priorities; I'm working on
>> those concurrently at the moment.
>>
>> There is also a potentially related issue:
>>
>> 5) Get harmony to work.
>>
>> I think this might be easier under native threads, but I also think
>> that we may have regressed it slightly.  Ian, what are your thoughts?
>>
>> Let us know if you observe any outstanding issues with threading that
>> aren't already JIRA'd.
>>
>> -Filip
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Create and Deploy Rich Internet Apps outside the browser with
>> Adobe(R)AIR(TM)
>> software. With Adobe AIR, Ajax developers can use existing skills  
>> and code
>> to
>> build responsive, highly engaging applications that combine the  
>> power of
>> local
>> resources and data with the reach of the web. Download the Adobe  
>> AIR SDK and
>> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
>> _______________________________________________
>> Jikesrvm-core mailing list
>> Jikesrvm-core@...
>> https://lists.sourceforge.net/lists/listinfo/jikesrvm-core
>>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with  
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills  
> and code to
> build responsive, highly engaging applications that combine the  
> power of local
> resources and data with the reach of the web. Download the Adobe AIR  
> SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Jikesrvm-core mailing list
> Jikesrvm-core@...
> https://lists.sourceforge.net/lists/listinfo/jikesrvm-core


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Jikesrvm-core mailing list
Jikesrvm-core@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-core

Re: [rvm-core] status of native threading

by Ian Rogers (nabble) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think in the first instance we can live with sysPthread. I opened a
thread a while back on planning for the next major release. I believe
we want a way to wrap libraries similar to Java Native Access. We can
then do:

@LibraryWrapper
abstract class APR {
    ... thread_create .....;
    ...
}

I'd then like to see the death of sys.C and use Java code (albeit
probably uninterruptible) to write this code. Of course we can't quite
kill sys.C as it'd still be needed for sysDlsym.

Ian

On 08/02/2009, Filip Pizlo <pizlo@...> wrote:

> I'm stuck trying to fix bugs.  If you there's support on my end I can
> add for it, let me know.  In particular, we have those sysPthreadXXX
> calls that should probably be cleaned up, right?
>
> -F
>
>
>
> On Feb 8, 2009, at 5:47 PM, Ian Rogers wrote:
>
>> So Harmony class library support is currently completely broken due to
>> trying to reference the old scheduler code:
>>
>> http://jikesrvm.anu.edu.au/cattrack/results/cayenne.anu.edu.au/sanity-harmony/7686/BaseBaseCopyMS/Output.txt
>>
>> I'll see if I can do anything quickly otherwise I'll open a JIRA. Feel
>> free to also have a look.
>>
>> Regards,
>> Ian
>>
>> On 08/02/2009, Filip Pizlo <pizlo@...> wrote:
>>> Hi all,
>>>
>>> We've committed native threading to the trunk (r15395) and also some
>>> trivial optimizations (r 15405).  The code seems stable and quite
>>> fast.  There are some spurious crashes; we're investigating them now.
>>>
>>> Our current work plan is as follows:
>>>
>>> 1) Investigate bugs.
>>>
>>> 2) Resolve all JIRA subtasks associated with RVM-91.
>>>
>>> 3) Optimize further where possible.  There are still optimization
>>> opportunities that have not been exploited, for example in regards to
>>> locking, and especially in regards to GC.  There are also places
>>> where
>>> Classpath's native code is being dumb, and with the current framework
>>> we could easily add hacks to speed it up.
>>>
>>> 4) Fix MMTk to take advantage of the lack of green threads, and
>>> streamline it to take allow simpler implementations of concurrent
>>> collectors.
>>>
>>> (4) is already underway in a branch (see branches/RVM-777-
>>> NewMMTkGlue).  (1) and (2) are the top priorities; I'm working on
>>> those concurrently at the moment.
>>>
>>> There is also a potentially related issue:
>>>
>>> 5) Get harmony to work.
>>>
>>> I think this might be easier under native threads, but I also think
>>> that we may have regressed it slightly.  Ian, what are your thoughts?
>>>
>>> Let us know if you observe any outstanding issues with threading that
>>> aren't already JIRA'd.
>>>
>>> -Filip
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Create and Deploy Rich Internet Apps outside the browser with
>>> Adobe(R)AIR(TM)
>>> software. With Adobe AIR, Ajax developers can use existing skills
>>> and code
>>> to
>>> build responsive, highly engaging applications that combine the
>>> power of
>>> local
>>> resources and data with the reach of the web. Download the Adobe
>>> AIR SDK and
>>> Ajax docs to start building applications
>>> today-http://p.sf.net/sfu/adobe-com
>>> _______________________________________________
>>> Jikesrvm-core mailing list
>>> Jikesrvm-core@...
>>> https://lists.sourceforge.net/lists/listinfo/jikesrvm-core
>>>
>>
>> ------------------------------------------------------------------------------
>> Create and Deploy Rich Internet Apps outside the browser with
>> Adobe(R)AIR(TM)
>> software. With Adobe AIR, Ajax developers can use existing skills
>> and code to
>> build responsive, highly engaging applications that combine the
>> power of local
>> resources and data with the reach of the web. Download the Adobe AIR
>> SDK and
>> Ajax docs to start building applications
>> today-http://p.sf.net/sfu/adobe-com
>> _______________________________________________
>> Jikesrvm-core mailing list
>> Jikesrvm-core@...
>> https://lists.sourceforge.net/lists/listinfo/jikesrvm-core
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Jikesrvm-core mailing list
> Jikesrvm-core@...
> https://lists.sourceforge.net/lists/listinfo/jikesrvm-core
>

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Jikesrvm-core mailing list
Jikesrvm-core@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-core