mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8234779: Provide idiom for declaring classes noncopyable
Add NONCOPYABLE macro and uses. Reviewed-by: dholmes, pliden, coleenp
This commit is contained in:
parent
3e0a524547
commit
577e87e5b2
37 changed files with 101 additions and 131 deletions
|
@ -26,7 +26,7 @@
|
|||
#define SHARE_GC_SHARED_OOPSTORAGEPARSTATE_HPP
|
||||
|
||||
#include "gc/shared/oopStorage.hpp"
|
||||
#include "utilities/macros.hpp"
|
||||
#include "utilities/globalDefinitions.hpp"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// Support for parallel and optionally concurrent state iteration.
|
||||
|
@ -134,9 +134,7 @@ class OopStorage::BasicParState {
|
|||
uint _estimated_thread_count;
|
||||
bool _concurrent;
|
||||
|
||||
// Noncopyable.
|
||||
BasicParState(const BasicParState&);
|
||||
BasicParState& operator=(const BasicParState&);
|
||||
NONCOPYABLE(BasicParState);
|
||||
|
||||
struct IterationData;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue