src/hotspot/share/runtime/handles.hpp
changeset 49364 601146c66cad
parent 47216 71c04702a3d5
child 49392 2956d0ece7a9
equal deleted inserted replaced
49363:7be58576e71a 49364:601146c66cad
     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.
    59 
    59 
    60 //------------------------------------------------------------------------------------------------------------------------
    60 //------------------------------------------------------------------------------------------------------------------------
    61 // Base class for all handles. Provides overloading of frequently
    61 // Base class for all handles. Provides overloading of frequently
    62 // used operators for ease of use.
    62 // used operators for ease of use.
    63 
    63 
    64 class Handle VALUE_OBJ_CLASS_SPEC {
    64 class Handle {
    65  private:
    65  private:
    66   oop* _handle;
    66   oop* _handle;
    67 
    67 
    68  protected:
    68  protected:
    69   oop     obj() const                            { return _handle == NULL ? (oop)NULL : *_handle; }
    69   oop     obj() const                            { return _handle == NULL ? (oop)NULL : *_handle; }