Top Fields Constructors Methods
sun.nio.ch

pack-priv Class AllocatedNativeObject

extends NativeObject
Class Inheritance

Field Summary

Inherited from sun.nio.ch.NativeObject:
allocationAddressunsafe

Constructor Summary

AccessConstructor and Description
pack-priv
AllocatedNativeObject(int
Number of bytes to allocate
size
,
boolean
If true then the area will be aligned on a hardware page boundary
pageAligned
)

Allocates a memory area of at least size bytes outside of the Java heap and creates a native object for that area.

Method Summary

Modifier and TypeMethod and Description
pack-priv synchronized void
free()

Frees the native memory area associated with this object.

Inherited from sun.nio.ch.NativeObject:
addressaddressSizeallocationAddressbyteOrdergetBytegetChargetDoublegetFloatgetIntgetLonggetObjectgetShortpageSizeputByteputCharputDoubleputFloatputIntputLongputObjectputShortsubObject

Constructor Detail

AllocatedNativeObjectback to summary
pack-priv AllocatedNativeObject(int size, boolean pageAligned)

Allocates a memory area of at least size bytes outside of the Java heap and creates a native object for that area.

Parameters
size:int

Number of bytes to allocate

pageAligned:boolean

If true then the area will be aligned on a hardware page boundary

Exceptions
OutOfMemoryError:
If the request cannot be satisfied

Method Detail

freeback to summary
pack-priv synchronized void free()

Frees the native memory area associated with this object.