summaryrefslogtreecommitdiff
path: root/TAO/performance-tests
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2004-06-23 07:06:40 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2004-06-23 07:06:40 +0000
commit117e8c5c48056b1f128f2742a62eaa591392a072 (patch)
tree4a0041316dcf3a13dd77245fc206470f025ca162 /TAO/performance-tests
parentb149b30b50147dc57ac8d37b1cbaf8c85239dd47 (diff)
downloadATCD-117e8c5c48056b1f128f2742a62eaa591392a072.tar.gz
ChangeLogTag: Wed Jun 23 06:52:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/performance-tests')
-rw-r--r--TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp8
-rw-r--r--TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_i.cpp8
2 files changed, 8 insertions, 8 deletions
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