Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8225760: oop::raw_set_obj isn't needed
Reviewed-by: hseigel, rkennke
  • Loading branch information
coleenp committed Mar 3, 2020
1 parent cf89ff7 commit 3ca275fb9182d507081196b6ae352d48066417f4
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/hotspot/share/oops/oopsHierarchy.hpp
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -82,10 +82,9 @@ class oop {

public:
void set_obj(const void* p) {
raw_set_obj(p);
_o = (oopDesc*)p;
if (CheckUnhandledOops) register_oop();
}
void raw_set_obj(const void* p) { _o = (oopDesc*)p; }

oop() { set_obj(NULL); }
oop(const oop& o) { set_obj(o.obj()); }

0 comments on commit 3ca275f

Please sign in to comment.