Skip to content

Commit

Permalink
8301612: OopLoadProxy constructor should be explicit
Browse files Browse the repository at this point in the history
Reviewed-by: stefank, jsjolen
  • Loading branch information
xmas92 committed Feb 2, 2023
1 parent 03b23a1 commit 21c1afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/oops/accessBackend.hpp
Expand Up @@ -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);
Expand Down

1 comment on commit 21c1afb

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.