fr.umlv.corosol.memory
Interface JMemoryAllocator
public interface JMemoryAllocator
A memory allocator. This interfaces provides methods to allocate memory
areas used by the Corosol JVM. These memory areas are JMemory
objects.
- Author:
- Christophe Deleray
- See Also:
JMemory
|
Method Summary |
JMemory |
allocate(int size)
Creates a memory area of size bytes. |
allocate
JMemory allocate(int size)
- Creates a memory area of size bytes.
- Parameters:
size - the size of the memory areas to be allocated
- Returns:
- a memory area of size bytes
- Throws:
java.lang.IllegalArgumentException - thrown if the size
of the requested memory is bigger than the memory remaining or is negative
java.lang.OutOfMemoryError - thrown if no memory is available