_Jv_AllocBytesChecked?

Bryce McKinlay bryce@waitaki.otago.ac.nz
Sat Dec 22 14:43:00 GMT 2001


On Saturday, December 22, 2001, at 10:14  PM, Adam Megacz wrote:

> I'm running into some references to _JvAllocBytesChecked in the
> winsock code... what's the difference between it and _Jv_AllocBytes?
>
> _JvAllocBytesChecked also doesn't seem to currently be implemented in
> gcj...

AllocBytesChecked was a wrapper for AllocBytes which could throw an 
OutOfMemoryException. Now, the collector will throw automatically on the 
out-of-memory condition so it is not necessary. So, it is safe to 
replace any remaining references to _Jv_AllocBytesChecked with 
_Jv_AllocBytes.

regards

Bryce.




More information about the Java mailing list