diff options
author | jrose <none@none> | 2009-03-20 23:19:36 -0700 |
---|---|---|
committer | jrose <none@none> | 2009-03-20 23:19:36 -0700 |
commit | c52da29d35f5056a90751e6ffa59436726f315cb (patch) | |
tree | fe710577878d8a1c3487bc0fc4d1b313b90ccd50 /src/share/vm/runtime/handles.hpp | |
parent | 12e6a2cf4d7aa5511e4bc596a424c22276adea9f (diff) |
6814659: separable cleanups and subroutines for 6655638
Summary: preparatory but separable changes for method handles
Reviewed-by: kvn, never
Diffstat (limited to 'src/share/vm/runtime/handles.hpp')
-rw-r--r-- | src/share/vm/runtime/handles.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/share/vm/runtime/handles.hpp b/src/share/vm/runtime/handles.hpp index 55e9b41fa..c44c6ac3d 100644 --- a/src/share/vm/runtime/handles.hpp +++ b/src/share/vm/runtime/handles.hpp @@ -1,5 +1,5 @@ /* - * Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2009 Sun Microsystems, Inc. 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 @@ -137,6 +137,14 @@ class KlassHandle: public Handle { assert(is_null() || obj()->is_klass(), "not a klassOop"); } + // Direct interface, use very sparingly. + // Used by SystemDictionaryHandles to create handles on existing WKKs. + // The obj of such a klass handle may be null, because the handle is formed + // during system bootstrapping. + KlassHandle(klassOop *handle, bool dummy) : Handle((oop*)handle, dummy) { + assert(SharedSkipVerify || is_null() || obj() == NULL || obj()->is_klass(), "not a klassOop"); + } + // General access klassOop operator () () const { return obj(); } Klass* operator -> () const { return as_klass(); } |