summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/util/prdfFlyWeight.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/diag/prdf/common/util/prdfFlyWeight.C')
-rwxr-xr-xsrc/usr/diag/prdf/common/util/prdfFlyWeight.C4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/diag/prdf/common/util/prdfFlyWeight.C b/src/usr/diag/prdf/common/util/prdfFlyWeight.C
index 151e49ae6..05df37a00 100755
--- a/src/usr/diag/prdf/common/util/prdfFlyWeight.C
+++ b/src/usr/diag/prdf/common/util/prdfFlyWeight.C
@@ -36,6 +36,7 @@
#include <tracinterface.H>
#include <prdfHeapBucketSize.H>
#include <prdfTrace.H>
+#include <prdfAssert.h>
#undef prdfFlyWeight_C
//----------------------------------------------------------------------
@@ -114,7 +115,8 @@ T & FlyWeight<T,S>::get(const T & key)
current_array = new T[RoundBucketSize<T,S>::value];
if(current_array == NULL) // dg00a
{ // dg00a
- PRDF_TRAC("PRDF Could not get requested memory"); // dg00a
+ PRDF_ERR("PRDF Could not get requested memory");
+ PRDF_ASSERT( NULL != current_array );
} // dg00a
// if the heap of array ptrs is full(or non-existant) then increase capacity by S dg00a
if(iv_heap.size() == iv_heap.capacity()) // dg00a
OpenPOWER on IntegriCloud