Skip to content

Commit 5566797

Browse files
committed
Merge branch 'cascadedAllocator' into cascadedMalloc
merge from cascadedAllocator for coderabbitai's suggestions
2 parents 204e580 + c19e903 commit 5566797

File tree

161 files changed

+748
-855
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+748
-855
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ assignees: ''
77

88
---
99

10+
<!---
1011
All support on github is best effort only, no guarantees given. When you need guaranteed support have a look at the commercial support offerings as listed at https://github.com/DOCGroup/ACE_TAO/wiki/ACE-and-TAO-Commercial-support.
12+
--->
1113

1214
### Version
1315

ACE/ACEXML/common/InputSource.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#endif /* ACE_LACKS_PRAGMA_ONCE */
2020

2121
#include "ACEXML/common/CharStream.h"
22-
#include "ace/Copy_Disabled.h"
2322

2423
/**
2524
* @class ACEXML_InputSource
@@ -49,14 +48,18 @@
4948
*
5049
* @sa ACEXML_CharStream
5150
*/
52-
class ACEXML_Export ACEXML_InputSource : private ACE_Copy_Disabled
51+
class ACEXML_Export ACEXML_InputSource
5352
{
5453
public:
5554
/**
5655
* Default constructor.
5756
*/
5857
ACEXML_InputSource ();
5958

59+
ACEXML_InputSource (const ACEXML_InputSource &) = delete;
60+
ACEXML_InputSource (ACEXML_InputSource &&) = delete;
61+
ACEXML_InputSource &operator= (const ACEXML_InputSource &) = delete;
62+
ACEXML_InputSource &operator= (ACEXML_InputSource &&) = delete;
6063

6164
/**
6265
* Create a new input source with a ACEXML_Char stream.

ACE/ACEXML/common/LocatorImpl.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#endif /* ACE_LACKS_PRAGMA_ONCE */
2121

2222
#include "ACEXML/common/Locator.h"
23-
#include "ace/Copy_Disabled.h"
2423

2524
/**
2625
* @class ACEXML_LocatorImpl
@@ -58,8 +57,7 @@
5857
* @sa ACEXML_Locator
5958
*/
6059
class ACEXML_Export ACEXML_LocatorImpl :
61-
public ACEXML_Locator,
62-
private ACE_Copy_Disabled
60+
public ACEXML_Locator
6361
{
6462
public:
6563
/*
@@ -81,6 +79,11 @@ class ACEXML_Export ACEXML_LocatorImpl :
8179
*/
8280
ACEXML_LocatorImpl (const ACEXML_Locator& locator);
8381

82+
ACEXML_LocatorImpl (const ACEXML_LocatorImpl &) = delete;
83+
ACEXML_LocatorImpl (ACEXML_LocatorImpl &&) = delete;
84+
ACEXML_LocatorImpl &operator= (const ACEXML_LocatorImpl &) = delete;
85+
ACEXML_LocatorImpl &operator= (ACEXML_LocatorImpl &&) = delete;
86+
8487
/*
8588
* Destructor.
8689
*/

ACE/Kokyu/DSRT_CV_Dispatcher_Impl_T.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#define DSRT_CV_DISPATCHER_IMPL_T_H
1010
#include /**/ "ace/pre.h"
1111
#include "ace/Task.h"
12-
#include "ace/Copy_Disabled.h"
1312

1413
#if !defined (ACE_LACKS_PRAGMA_ONCE)
1514
# pragma once
@@ -23,8 +22,7 @@ namespace Kokyu
2322
{
2423
template<class DSRT_Scheduler_Traits>
2524
class DSRT_CV_Dispatcher_Impl :
26-
public DSRT_Dispatcher_Impl<DSRT_Scheduler_Traits>,
27-
public ACE_Copy_Disabled
25+
public DSRT_Dispatcher_Impl<DSRT_Scheduler_Traits>
2826
{
2927
public:
3028
typedef typename
@@ -36,6 +34,11 @@ namespace Kokyu
3634
DSRT_CV_Dispatcher_Impl (ACE_Sched_Params::Policy sched_policy,
3735
int sched_scope);
3836

37+
DSRT_CV_Dispatcher_Impl (const DSRT_CV_Dispatcher_Impl &) = delete;
38+
DSRT_CV_Dispatcher_Impl (DSRT_CV_Dispatcher_Impl &&) = delete;
39+
DSRT_CV_Dispatcher_Impl &operator= (const DSRT_CV_Dispatcher_Impl &) = delete;
40+
DSRT_CV_Dispatcher_Impl &operator= (DSRT_CV_Dispatcher_Impl &&) = delete;
41+
3942
int init_i (const DSRT_ConfigInfo&);
4043

4144
/// Schedule a thread dynamically based on the qos info supplied.

ACE/Kokyu/DSRT_Direct_Dispatcher_Impl_T.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#if !defined (ACE_LACKS_PRAGMA_ONCE)
1616
# pragma once
1717
#endif /* ACE_LACKS_PRAGMA_ONCE */
18-
#include "ace/Copy_Disabled.h"
1918
#include "Kokyu_dsrt.h"
2019
#include "DSRT_Sched_Queue_T.h"
2120
#include "DSRT_Dispatcher_Impl_T.h"
@@ -25,8 +24,7 @@ namespace Kokyu
2524
template<class DSRT_Scheduler_Traits>
2625
class DSRT_Direct_Dispatcher_Impl :
2726
public ACE_Task_Base,
28-
public DSRT_Dispatcher_Impl<DSRT_Scheduler_Traits>,
29-
public ACE_Copy_Disabled
27+
public DSRT_Dispatcher_Impl<DSRT_Scheduler_Traits>
3028
{
3129
public:
3230
typedef typename
@@ -38,6 +36,11 @@ namespace Kokyu
3836
DSRT_Direct_Dispatcher_Impl (ACE_Sched_Params::Policy sched_policy,
3937
int sched_scope);
4038

39+
DSRT_Direct_Dispatcher_Impl (const DSRT_Direct_Dispatcher_Impl &) = delete;
40+
DSRT_Direct_Dispatcher_Impl (DSRT_Direct_Dispatcher_Impl &&) = delete;
41+
DSRT_Direct_Dispatcher_Impl &operator= (const DSRT_Direct_Dispatcher_Impl &) = delete;
42+
DSRT_Direct_Dispatcher_Impl &operator= (DSRT_Direct_Dispatcher_Impl &&) = delete;
43+
4144
int init_i (const DSRT_ConfigInfo&);
4245

4346
/// Schedule a thread dynamically based on the qos info supplied.

ACE/Kokyu/DSRT_Dispatch_Item_T.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#define DSRT_DISPATCH_ITEM_H
1010
#include /**/ "ace/pre.h"
1111
#include "ace/Bound_Ptr.h"
12-
#include "ace/Copy_Disabled.h"
1312

1413
#if !defined (ACE_LACKS_PRAGMA_ONCE)
1514
# pragma once
@@ -26,7 +25,7 @@ namespace Kokyu
2625
*/
2726

2827
template <class DSRT_Scheduler_Traits>
29-
class DSRT_Dispatch_Item : private ACE_Copy_Disabled
28+
class DSRT_Dispatch_Item
3029
{
3130
typedef typename
3231
DSRT_Scheduler_Traits::Guid_t Guid_t;
@@ -43,6 +42,11 @@ namespace Kokyu
4342
public:
4443
DSRT_Dispatch_Item (Guid_t guid, const DSRT_QoSDescriptor&);
4544

45+
DSRT_Dispatch_Item (const DSRT_Dispatch_Item &) = delete;
46+
DSRT_Dispatch_Item (DSRT_Dispatch_Item &&) = delete;
47+
DSRT_Dispatch_Item &operator= (const DSRT_Dispatch_Item &) = delete;
48+
DSRT_Dispatch_Item &operator= (DSRT_Dispatch_Item &&) = delete;
49+
4650
/// Get the guid.
4751
Guid_t guid ();
4852

ACE/Kokyu/Kokyu.h

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#ifndef KOKYU_H
1212
#define KOKYU_H
1313
#include /**/ "ace/pre.h"
14-
#include "ace/Copy_Disabled.h"
1514

1615
#if !defined (ACE_LACKS_PRAGMA_ONCE)
1716
# pragma once
@@ -56,9 +55,15 @@ namespace Kokyu
5655
* Dispatcher is the class that users will be using to achieve
5756
* dynamic dispatching of events in an event channel.
5857
*/
59-
class Kokyu_Export Dispatcher : private ACE_Copy_Disabled
58+
class Kokyu_Export Dispatcher
6059
{
6160
public:
61+
Dispatcher () = default;
62+
Dispatcher (const Dispatcher &) = delete;
63+
Dispatcher (Dispatcher &&) = delete;
64+
Dispatcher &operator= (const Dispatcher &) = delete;
65+
Dispatcher &operator= (Dispatcher &&) = delete;
66+
6267
/// Dispatch a command object based on the qos info supplied.
6368
int dispatch (const Dispatch_Command*, const QoSDescriptor&);
6469

@@ -90,9 +95,14 @@ namespace Kokyu
9095
* Factory class creates a dispatcher for EC and configures the
9196
* interface object with the appropriate implementation.
9297
*/
93-
class Kokyu_Export Dispatcher_Factory : private ACE_Copy_Disabled
98+
class Kokyu_Export Dispatcher_Factory
9499
{
95100
public:
101+
Dispatcher_Factory (const Dispatcher_Factory &) = delete;
102+
Dispatcher_Factory (Dispatcher_Factory &&) = delete;
103+
Dispatcher_Factory &operator= (const Dispatcher_Factory &) = delete;
104+
Dispatcher_Factory &operator= (Dispatcher_Factory &&) = delete;
105+
96106
/**
97107
* Create a dispatcher for dynamic dispatching of commands
98108
* (eg. events). The caller is responsible for freeing the

ACE/Kokyu/Kokyu_dsrt.h

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#ifndef KOKYU_DSRT_H
99
#define KOKYU_DSRT_H
1010
#include /**/ "ace/pre.h"
11-
#include "ace/Copy_Disabled.h"
1211

1312
#include "kokyu_export.h"
1413
#include "Kokyu_defs.h"
@@ -31,7 +30,7 @@ namespace Kokyu
3130
* dynamic scheduling of threads.
3231
*/
3332
template <class DSRT_Scheduler_Traits>
34-
class DSRT_Dispatcher : private ACE_Copy_Disabled
33+
class DSRT_Dispatcher
3534
{
3635
public:
3736
typedef typename DSRT_Scheduler_Traits::Guid_t Guid_t;
@@ -60,6 +59,13 @@ namespace Kokyu
6059
/// Shut down the dispatcher. The dispatcher will stop processing requests.
6160
int shutdown ();
6261

62+
DSRT_Dispatcher () = default;
63+
64+
DSRT_Dispatcher (const DSRT_Dispatcher &) = delete;
65+
DSRT_Dispatcher (DSRT_Dispatcher &&) = delete;
66+
DSRT_Dispatcher &operator= (const DSRT_Dispatcher &) = delete;
67+
DSRT_Dispatcher &operator= (DSRT_Dispatcher &&) = delete;
68+
6369
/// Non virtual destructor. Read as <b><i>this class not available
6470
/// for inheritance<i></b>.
6571
~DSRT_Dispatcher ();
@@ -82,9 +88,14 @@ namespace Kokyu
8288
*/
8389

8490
template <class DSRT_Scheduler_Traits>
85-
class DSRT_Dispatcher_Factory : private ACE_Copy_Disabled
91+
class DSRT_Dispatcher_Factory
8692
{
8793
public:
94+
DSRT_Dispatcher_Factory (const DSRT_Dispatcher_Factory &) = delete;
95+
DSRT_Dispatcher_Factory (DSRT_Dispatcher_Factory &&) = delete;
96+
DSRT_Dispatcher_Factory &operator= (const DSRT_Dispatcher_Factory &) = delete;
97+
DSRT_Dispatcher_Factory &operator= (DSRT_Dispatcher_Factory &&) = delete;
98+
8899
typedef std::unique_ptr<DSRT_Dispatcher<DSRT_Scheduler_Traits> > DSRT_Dispatcher_Auto_Ptr;
89100

90101
/**

ACE/ace/Activation_Queue.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#endif /* ACE_LACKS_PRAGMA_ONCE */
2222

2323
#include "ace/Message_Queue.h"
24-
#include "ace/Copy_Disabled.h"
2524
#include "ace/Condition_Thread_Mutex.h"
2625

2726
/// Define to be compatible with the terminology in the POSA2 book!

ACE/ace/Caching_Utility_T.cpp

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#endif /* ACE_LACKS_PRAGMA_ONCE */
99

1010
#include "ace/ACE.h"
11-
#include "ace/Min_Max.h"
1211
#include "ace/OS_Memory.h"
1312
#include "ace/Recyclable.h"
1413

@@ -56,9 +55,9 @@ ACE_Pair_Caching_Utility<KEY, VALUE, CONTAINER, ITERATOR, ATTRIBUTES>::clear_cac
5655
// Calculate the no of entries to remove from the cache depending
5756
// upon the <purge_percent>.
5857
size_t const entries_to_remove
59-
= ACE_MAX (static_cast<size_t> (1),
60-
static_cast<size_t> (static_cast<double> (purge_percent)
61-
/ 100 * current_map_size));
58+
= (std::max) (static_cast<size_t> (1),
59+
static_cast<size_t> (static_cast<double> (purge_percent)
60+
/ 100 * current_map_size));
6261
KEY *key_to_remove = 0;
6362
VALUE *value_to_remove = 0;
6463

@@ -155,9 +154,9 @@ ACE_Recyclable_Handler_Caching_Utility<KEY, VALUE, CONTAINER, ITERATOR, ATTRIBUT
155154
// Calculate the no of entries to remove from the cache depending
156155
// upon the <purge_percent>.
157156
size_t const entries_to_remove
158-
= ACE_MAX (static_cast<size_t> (1),
159-
static_cast<size_t> (static_cast<double> (purge_percent)
160-
/ 100 * current_map_size));
157+
= (std::max) (static_cast<size_t> (1),
158+
static_cast<size_t> (static_cast<double> (purge_percent)
159+
/ 100 * current_map_size));
161160

162161
KEY *key_to_remove = 0;
163162
VALUE *value_to_remove = 0;
@@ -275,9 +274,9 @@ ACE_Refcounted_Recyclable_Handler_Caching_Utility<KEY, VALUE, CONTAINER, ITERATO
275274
// Calculate the no of entries to remove from the cache depending
276275
// upon the <purge_percent>.
277276
size_t entries_to_remove
278-
= ACE_MAX (static_cast<size_t> (1),
279-
static_cast<size_t> (static_cast<double> (purge_percent)
280-
/ 100 * available_entries));
277+
= (std::max) (static_cast<size_t> (1),
278+
static_cast<size_t> (static_cast<double> (purge_percent)
279+
/ 100 * available_entries));
281280

282281
if (entries_to_remove >= available_entries || entries_to_remove == 0)
283282
entries_to_remove = available_entries - 1;
@@ -397,10 +396,10 @@ ACE_Handler_Caching_Utility<KEY, VALUE, CONTAINER, ITERATOR, ATTRIBUTES>::clear_
397396

398397
// Calculate the no of entries to remove from the cache depending
399398
// upon the <purge_percent>.
400-
size_t entries_to_remove
401-
= ACE_MAX (static_cast<size_t> (1),
402-
static_cast<size_t> (static_cast<double> (purge_percent)
403-
/ 100 * current_map_size));
399+
size_t const entries_to_remove
400+
= (std::max) (static_cast<size_t> (1),
401+
static_cast<size_t> (static_cast<double> (purge_percent)
402+
/ 100 * current_map_size));
404403

405404
KEY *key_to_remove = 0;
406405
VALUE *value_to_remove = 0;

0 commit comments

Comments
 (0)