1.1 --- a/src/share/vm/runtime/handles.hpp Thu Mar 19 09:13:24 2009 -0700 1.2 +++ b/src/share/vm/runtime/handles.hpp Fri Mar 20 23:19:36 2009 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. 1.6 + * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -137,6 +137,14 @@ 1.11 assert(is_null() || obj()->is_klass(), "not a klassOop"); 1.12 } 1.13 1.14 + // Direct interface, use very sparingly. 1.15 + // Used by SystemDictionaryHandles to create handles on existing WKKs. 1.16 + // The obj of such a klass handle may be null, because the handle is formed 1.17 + // during system bootstrapping. 1.18 + KlassHandle(klassOop *handle, bool dummy) : Handle((oop*)handle, dummy) { 1.19 + assert(SharedSkipVerify || is_null() || obj() == NULL || obj()->is_klass(), "not a klassOop"); 1.20 + } 1.21 + 1.22 // General access 1.23 klassOop operator () () const { return obj(); } 1.24 Klass* operator -> () const { return as_klass(); }