By having the JIT produce code to inline the object allocation using
its knowledge of the GC internals. I'm not recommending this approach,
just saying that this is how things tend to be done in practice. And
if you want to compete on speed then you're going to have to address
the issue. (This seems to be an area where Java in Java wins if I
understand it right, ie you can have your modularity cake and eat it
too).

Cheers,

Dave

On 5/18/05, Ben Laurie <[EMAIL PROTECTED]> wrote:
> David Griffiths wrote:
> > I think it's too slow to have the overhead of a function call for
> > every object allocation. This is the cost of modularization. I doubt
> > any of the mainstream JVMs you are competing with do this.
> 
> How do you propose to allocate objects without function calls?
> 
> --
> http://www.apache-ssl.org/ben.html       http://www.thebunker.net/
> 
> "There is no limit to what a man can do or how far he can go if he
> doesn't mind who gets the credit." - Robert Woodruff
>

Reply via email to