harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Garner <robin.gar...@anu.edu.au>
Subject Re: [VM]How to trigue GC while free native memory is low.
Date Fri, 09 Feb 2007 08:19:42 GMT
Rana Dasgupta wrote:
> On 2/8/07, Robin Garner <robin.garner@anu.edu.au> wrote:
>> >My point was that by adding a single GC -> VM interface function, all
>> >types of native resources could be addressed in a simple extensible way.
>> >The subsequent policy and mechanism decisions then become an ongoing
>> >design process for the VM and classlib native implementers, but once
>> >this interface function is added, GC can support freeing of native
>> >resources by whatever mechanisms the VM chooses to implement.
> I don't understand very well how the JVM can define policies on its
> platform/OS resource usage when it may be hosted by a server which wants to
> define such policies itself. In other words, say the JVM is running an 
> managed stored procedure. Should it be making assumptions about how much
> native heap to use etc. when the hosting RDBMS may have negotiated such
> policies itself and may be choosing to invoke one or more instances of the
> JVM?

This is an interesting issue but I don't think it's relevant to the 
design of the interface.

In fact it's a perfect illustration of why the GC should defer policy 
decisions to an opaque VM API function, so that the VM is free to 
negotiate policy (or lack thereof) with its surrounding environment.

Robin Garner
Dept. of Computer Science
Australian National University

View raw message