From 117e8c5c48056b1f128f2742a62eaa591392a072 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Wed, 23 Jun 2004 07:06:40 +0000 Subject: ChangeLogTag: Wed Jun 23 06:52:12 UTC 2004 Johnny Willemsen --- TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp | 8 ++++---- TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_i.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'TAO/performance-tests') diff --git a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp index 84b91bcda0b..2d0bd749394 100644 --- a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp +++ b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp @@ -739,10 +739,10 @@ Cubit_Client::cube_long_sequence (int, // gets in the way. input[0] = 4; -#if defined (ACE_HAS_PURIFY) && (ACE_HAS_PURIFY == 1) +#if defined (ACE_HAS_MEMORY_PROFILER) for (int i = 1; i < l; i++) input[i]=11; -#endif /* ACE_HAS_PURIFY == 1 */ +#endif /* ACE_HAS_MEMORY_PROFILER */ Cubit::long_seq_var output; Cubit::long_seq_out vout (output); @@ -813,10 +813,10 @@ Cubit_Client::cube_octet_sequence (int, // gets in the way. input[0] = 4; -#if defined (ACE_HAS_PURIFY) && (ACE_HAS_PURIFY == 1) +#if defined (ACE_INITIALIZE_MEMORY_BEFORE_USE) for (int i = 1 ; i < l; i++) input[i]=10; -#endif /* ACE_HAS_PURIFY == 1 */ +#endif /* ACE_INITIALIZE_MEMORY_BEFORE_USE */ Cubit::octet_seq_var output; Cubit::octet_seq_out vout (output); diff --git a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_i.cpp b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_i.cpp index b4084ce49df..91a6f4b7df3 100644 --- a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_i.cpp +++ b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_i.cpp @@ -281,7 +281,7 @@ Cubit_i::cube_long_sequence (const Cubit::long_seq &input, output->length (input.length ()); -#if defined (ACE_HAS_PURIFY) && (ACE_HAS_PURIFY == 1) +#if defined (ACE_HAS_MEMORY_PROFILER) for (CORBA::ULong i = 0; i < input.length (); ++i) { CORBA::Long x = input[i]; @@ -291,7 +291,7 @@ Cubit_i::cube_long_sequence (const Cubit::long_seq &input, CORBA::ULong i = 0; CORBA::Long x = input[0]; output[i] = x * x * x; -#endif /* ACE_HAS_PURIFY == 1 */ +#endif /* ACE_HAS_MEMORY_PROFILER */ } // Cube an octet sequence @@ -316,7 +316,7 @@ Cubit_i::cube_octet_sequence (const Cubit::octet_seq &input, output->length (input.length ()); -#if defined (ACE_HAS_PURIFY) && (ACE_HAS_PURIFY == 1) +#if defined (ACE_INITIALIZE_MEMORY_BEFORE_USE) // For Purify, initialize every output since we're looking for // accesses to uninitialized memory addresses. Performance // is secondary when compiling for purify. @@ -333,7 +333,7 @@ Cubit_i::cube_octet_sequence (const Cubit::octet_seq &input, CORBA::ULong i = 0; CORBA::Octet x = input[0]; output[i] = x * x * x; -#endif /* ACE_HAS_PURIFY == 1 */ +#endif /* ACE_INITIALIZE_MEMORY_BEFORE_USE */ } void -- cgit v1.2.1