8200630: Globally suppress Visual Studio warning C4351
Globally suppress warning, remove sole instance of local suppression. Reviewed-by: gtriantafill, tschatzl
This commit is contained in:
parent
9924d7748e
commit
094178fdba
@ -120,12 +120,6 @@ const unsigned section_size = BitsPerByte;
|
||||
const unsigned section_count = BytesPerWord;
|
||||
const unsigned block_alignment = sizeof(oop) * section_size;
|
||||
|
||||
// VS2013 warns (C4351) that elements of _data will be *correctly* default
|
||||
// initialized, unlike earlier versions that *incorrectly* did not do so.
|
||||
#ifdef _WINDOWS
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4351)
|
||||
#endif // _WINDOWS
|
||||
OopStorage::Block::Block(const OopStorage* owner, void* memory) :
|
||||
_data(),
|
||||
_allocated_bitmask(0),
|
||||
@ -142,9 +136,6 @@ OopStorage::Block::Block(const OopStorage* owner, void* memory) :
|
||||
assert(owner != NULL, "NULL owner");
|
||||
assert(is_aligned(this, block_alignment), "misaligned block");
|
||||
}
|
||||
#ifdef _WINDOWS
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
OopStorage::Block::~Block() {
|
||||
assert(_release_refcount == 0, "deleting block while releasing");
|
||||
|
@ -139,6 +139,7 @@ inline int g_isfinite(jdouble f) { return _finite(f); }
|
||||
#pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union (needed in windows.h)
|
||||
#pragma warning( disable : 4511 ) // copy constructor could not be generated
|
||||
#pragma warning( disable : 4291 ) // no matching operator delete found; memory will not be freed if initialization thows an exception
|
||||
#pragma warning( disable : 4351 ) // new behavior: elements of array ... will be default initialized
|
||||
#ifdef CHECK_UNHANDLED_OOPS
|
||||
#pragma warning( disable : 4521 ) // class has multiple copy ctors of a single type
|
||||
#pragma warning( disable : 4522 ) // class has multiple assignment operators of a single type
|
||||
|
Loading…
x
Reference in New Issue
Block a user