8301612: OopLoadProxy constructor should be explicit

Reviewed-by: stefank, jsjolen
This commit is contained in:
Axel Boldt-Christmas 2023-02-02 14:04:22 +00:00
parent 03b23a1e1b
commit 21c1afbc32

View File

@ -1230,7 +1230,7 @@ namespace AccessInternal {
private:
P *const _addr;
public:
OopLoadProxy(P* addr) : _addr(addr) {}
explicit OopLoadProxy(P* addr) : _addr(addr) {}
inline operator oop() {
return load<decorators | INTERNAL_VALUE_IS_OOP, P, oop>(_addr);