On 8/1/06, Gregory Shimansky <[EMAIL PROTECTED]> wrote:
There is a method Runtime.freeMemory() which returns the memory available in
the heap. I wonder what it should return when there is no limit.

Some applications may rely on the value which this method returns. Just
returning Long.MAX_VALUE may lead to confusion.


It can simply returns the freeMemory available to the Java object
allocation, if that's programmer wants.

Basically I think this API is only for profiling hints purpose,
meaning it has no guarantee about the real memory situation. So it's
not recommended to program the application depending on its return
value.

Thanks,
xiaofeng

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to