| 636 | } |
| 637 | |
| 638 | bool JAUSectionHeap::popSection() |
| 639 | { |
| 640 | if(getNumSections() <= 1) |
| 641 | return false; |
| 642 | |
| 643 | JSULink<JAUSection> *lastLink = sectionList_.getLast(); |
| 644 | JAUSection *section = lastLink->getObject(); |
| 645 | |
| 646 | section->disposeUserDisposers_(); |
| 647 | |
| 648 | if (!section->releaseSeqData_()) |
| 649 | return false; |
| 650 | |
| 651 | if (!section->isDisposable_()) |
| 652 | return false; |
| 653 | |
| 654 | if (sectionList_.remove(lastLink)) |
| 655 | { |
| 656 | section->releaseAllBank_(); |
| 657 | u32 tag = getNumSections(); |
| 658 | #line 810 |
| 659 | JUT_ASSERT(tag >= 1); |
| 660 | heap_->restoreState(tag); |
| 661 | return true; |
| 662 | } |
| 663 | |
| 664 | return false; |
| 665 | } |
| 666 | |
| 667 | JAUSection *JAUSectionHeap::getSection(int no) |
| 668 | { |
nothing calls this directly
no test coverage detected