From c90ad0122038cca073800f2b61e30d7a3c5cb5aa Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Wed, 31 Jan 2007 21:51:06 +0000 Subject: [PATCH] set object information in the internal macro, as that's what is used by the free list grow functions This commit was SVN r13402. --- opal/class/opal_object.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opal/class/opal_object.h b/opal/class/opal_object.h index 3e532c4a9a..51cc9826aa 100644 --- a/opal/class/opal_object.h +++ b/opal/class/opal_object.h @@ -352,19 +352,19 @@ static inline opal_object_t *opal_obj_new_debug(opal_class_t* type, const char* #define OBJ_CONSTRUCT(object, type) \ do { \ - OBJ_SET_MAGIC_ID((object), OPAL_OBJ_MAGIC_ID); \ OBJ_CONSTRUCT_INTERNAL((object), OBJ_CLASS(type)); \ - OBJ_REMEMBER_FILE_AND_LINENO( object, __FILE__, __LINE__ ); \ } while (0) #define OBJ_CONSTRUCT_INTERNAL(object, type) \ do { \ + OBJ_SET_MAGIC_ID((object), OPAL_OBJ_MAGIC_ID); \ if (0 == (type)->cls_initialized) { \ opal_class_initialize((type)); \ } \ ((opal_object_t *) (object))->obj_class = (type); \ ((opal_object_t *) (object))->obj_reference_count = 1; \ opal_obj_run_constructors((opal_object_t *) (object)); \ + OBJ_REMEMBER_FILE_AND_LINENO( object, __FILE__, __LINE__ ); \ } while (0)