Re: Re[2]: [linux-audio-dev] LAAGA proposal, part ??

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: Re[2]: [linux-audio-dev] LAAGA proposal, part ??
From: Steve Harris (S.W.Harris_AT_ecs.soton.ac.uk)
Date: Mon Jun 11 2001 - 00:49:21 EEST


On Sun, Jun 10, 2001 at 11:59:37AM -0700, Jay Ts wrote:
> SH> On Fri, Jun 08, 2001 at 04:08:31PM -0700, Simon Per Soren Kagedal wrote:
> >> On Fri, Jun 08, 2001 at 12:05:15PM +0100, Steve Harris wrote:
> >> > Just incase anyone thinks Java is a stupid example I did a test with gcj.
> >> > It's performance on dsp-type code is withing spitting distance of c++'s.
> >>
> >> Hey, that's excellent! What about gcj's garbage collector? Is it
> >> friendly to realtime stuff?
>
> SH> I doubt it, but it probably doesn't go away and do things unbidden.
>
> The problem with garbage collectors is that in most cases, they are
> implemented in a way that is obscured from the programmer, oh, or
> should I say, "handled automatically". Every garbage collection
> implementation has by design "gone away and done things unbidden".
> Big things that take a lot of time, in fact.

My experience of Java on several vm's is that it won't run the garbage
collector unless you new or dereference something. Those arn;t operations
you should do in a "realtime" thread anyway. That said, native gcj doesn't
have a real vm, so I've no idea what it will do.

I really don't want to get into an discuaion about whether java may or may
not be suitible for realtime audio, the only way to tell is to try and I
have no intention of trying in the forseeable future.

- Steve


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon Jun 11 2001 - 01:31:41 EEST