8264346: nullptr_t undefined in global namespace for clang+libstdc++

Reviewed-by: dholmes, kbarrett
This commit is contained in:
Stefan Karlsson 2021-03-31 16:43:56 +00:00
parent 0fa35728a7
commit dec344709f
2 changed files with 4 additions and 2 deletions
src/hotspot/share

@ -100,8 +100,8 @@ public:
bool operator==(const oop& o) const { return _o == o._o; }
bool operator!=(const oop& o) const { return _o != o._o; }
bool operator==(nullptr_t) const { return _o == nullptr; }
bool operator!=(nullptr_t) const { return _o != nullptr; }
bool operator==(std::nullptr_t) const { return _o == nullptr; }
bool operator!=(std::nullptr_t) const { return _o != nullptr; }
oop& operator=(const oop& o) { _o = o._o; return *this; }
};

@ -34,6 +34,8 @@
#include COMPILER_HEADER(utilities/globalDefinitions)
#include <cstddef>
class oopDesc;
// Defaults for macros that might be defined per compiler.