7.5.2 Life cycle and state transition of objects
This subsection describes the life cycle and state transition of objects to be placed in Explicit memory blocks.
You need to explicitly generate and release the objects placed in Explicit memory blocks by using the Explicit Memory Management functionality API, on the basis of survival period. The survival period and the life duration of objects vary according to the application processing.
The following figure shows the life cycle of objects to be placed in Explicit memory blocks.
|
The object is generated directly in Explicit memory block. Then, if the Explicit memory block is released by using the Explicit Memory Management functionality API, the object is destroyed or moved to the Java heap depending on the state. For details on the operations when release processing is executed, see 7.8.2 The process of releasing the Explicit memory block when the automatic release functionality is disabled.