mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 00:00:44 +01:00
StaticAllocationFailureNodes are not stored in the pool
This commit is contained in:
@@ -5,9 +5,13 @@
|
||||
#include "char_layout_node.h"
|
||||
|
||||
template<>
|
||||
TreeNode * LayoutRef::staticFailedAllocationStaticNode() {
|
||||
static AllocationFailedLayoutRef FailureRef;
|
||||
return FailureRef.node();
|
||||
TreeNode * LayoutRef::FailedAllocationStaticNode() {
|
||||
static AllocationFailedLayoutNode FailureNode;
|
||||
if (FailureNode.identifier() >= -1) {
|
||||
int newIdentifier = TreePool::sharedPool()->registerStaticNode(&FailureNode);
|
||||
FailureNode.rename(newIdentifier);
|
||||
}
|
||||
return &FailureNode;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
||||
Reference in New Issue
Block a user