src/hotspot/share/oops/oopsHierarchy.hpp
changeset 48831 05894c073b7e
parent 47609 a1f68e415b48
child 49057 045b2de329b9
equal deleted inserted replaced
48830:11920d5d14a8 48831:05894c073b7e
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   104   bool operator==(const oop o) const  { return obj() == o.obj(); }
   104   bool operator==(const oop o) const  { return obj() == o.obj(); }
   105   bool operator==(void *p) const      { return obj() == p; }
   105   bool operator==(void *p) const      { return obj() == p; }
   106   bool operator!=(const volatile oop o) const  { return obj() != o.obj(); }
   106   bool operator!=(const volatile oop o) const  { return obj() != o.obj(); }
   107   bool operator!=(void *p) const      { return obj() != p; }
   107   bool operator!=(void *p) const      { return obj() != p; }
   108 
   108 
   109   bool operator<(oop o) const         { return obj() < o.obj(); }
       
   110   bool operator>(oop o) const         { return obj() > o.obj(); }
       
   111   bool operator<=(oop o) const        { return obj() <= o.obj(); }
       
   112   bool operator>=(oop o) const        { return obj() >= o.obj(); }
       
   113   bool operator!() const              { return !obj(); }
       
   114 
       
   115   // Assignment
   109   // Assignment
   116   oop& operator=(const oop& o)                            { _o = o.obj(); return *this; }
   110   oop& operator=(const oop& o)                            { _o = o.obj(); return *this; }
   117   volatile oop& operator=(const oop& o) volatile          { _o = o.obj(); return *this; }
   111   volatile oop& operator=(const oop& o) volatile          { _o = o.obj(); return *this; }
   118   volatile oop& operator=(const volatile oop& o) volatile { _o = o.obj(); return *this; }
   112   volatile oop& operator=(const volatile oop& o) volatile { _o = o.obj(); return *this; }
   119 
   113