When an enabled Explicit memory block is not specified, many APIs that operate the Explicit heap cannot be processed. In such a case, an error check routine common to all the APIs is defined, and it is determined whether the processing of an API can be executed or not. The common error check is used to determine whether or not an API can be processed depending on the state of the Explicit memory blocks that are processed by each API . The values returned by the common error check are as follows:
- true:
- Determines that the processing of an API can be continued. This value is returned when the state of the Explicit memory block that is to be processed is enabled.
- false:
- Determines that an API cannot be processed. This value is returned when the state of the Explicit memory block, that is to be processed, is disabled.
- InaccessibleMemoryAreaException (exception class):
- This exception has been thrown when an attempt was made to execute an unsupported functionality. For details on InaccessibleMemoryAreaException classes, see 10.7 Exception classes.
- This exception has been thrown when the Explicit memory block to be processed is in the following states:
- Released
- Reserved for release or explicitly reserved for automatic release
- State other than enabled, disabled, released, and reserved for release