8218192: Remove copy constructor for MemRegion
Remove copy constructor in memRegion.hpp Reviewed-by: tschatzl, kbarrett
This commit is contained in:
parent
39ba0f09a9
commit
a75f826ea8
@ -34,7 +34,9 @@
|
||||
|
||||
// Note that MemRegions are passed by value, not by reference.
|
||||
// The intent is that they remain very small and contain no
|
||||
// objects. These should never be allocated in heap but we do
|
||||
// objects. The copy constructor and destructor must be trivial,
|
||||
// to support optimization for pass-by-value.
|
||||
// These should never be allocated in heap but we do
|
||||
// create MemRegions (in CardTableBarrierSet) in heap so operator
|
||||
// new and operator new [] added for this special case.
|
||||
|
||||
@ -59,8 +61,6 @@ public:
|
||||
assert(end >= start, "incorrect constructor arguments");
|
||||
}
|
||||
|
||||
MemRegion(const MemRegion& mr): _start(mr._start), _word_size(mr._word_size) {}
|
||||
|
||||
MemRegion intersection(const MemRegion mr2) const;
|
||||
// regions must overlap or be adjacent
|
||||
MemRegion _union(const MemRegion mr2) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user