I understand that NHRT can have no references to the standard heap, and I thought I was creating arguments that are objects in ImmortalMemory, but I get IllegalArgumentException. How can I find out which of the arguments being passed to the NHRT constructor is being created in the heap?
Use MemoryArea.getMemoryArea() to check the allocation context for each argument being passed. Note that some arguments, if left null, will be taken from the current real-time thread. Also check that if you are creating a ScopedMemory for the NHRT, the ScopedMemory object itself cannot be allocated in heap.
Related Questions
- I understand that NHRT can have no references to the standard heap, and I thought I was creating arguments that are objects in ImmortalMemory, but I get IllegalArgumentException. How can I find out which of the arguments being passed to the NHRT constructor is being created in the heap?
- For securing the objects from movement while on display, what kind of product should I use (also meets conservation standard)?
- Should I use an arraylist for the array used for storing the references to the binary heap objects?