mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
6814659
: separable cleanups and subroutines for 6655638
Preparatory but separable changes for method handles Reviewed-by: kvn, never
This commit is contained in:
parent
41463d1d3a
commit
cfb08c72ba
30 changed files with 598 additions and 259 deletions
|
@ -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(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue