equal
deleted
inserted
replaced
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; } |