src/share/vm/ci/ciKlass.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/ci/ciKlass.cpp Thu Dec 3 11:54:13 2009
--- new/src/share/vm/ci/ciKlass.cpp Thu Dec 3 11:54:13 2009
*** 1,7 ****
--- 1,7 ----
/*
! * Copyright 1999-2007 Sun Microsystems, Inc. All Rights Reserved.
! * Copyright 1999-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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 59,68 ****
--- 59,80 ----
_name = name;
_layout_helper = Klass::_lh_neutral_value;
}
// ------------------------------------------------------------------
+ // ciKlass::is_in_package
+ //
+ // Is this klass in the given package?
+ bool ciKlass::is_in_package(const char* packagename) const {
+ ResourceMark rm;
+ Klass* klass = get_klassOop()->klass_part();
+ const char* external_name = klass->external_name();
+ size_t packagename_len = strlen(packagename);
+ return (strncmp(packagename, external_name, packagename_len) == 0);
+ }
+
+ // ------------------------------------------------------------------
// ciKlass::is_subtype_of
bool ciKlass::is_subtype_of(ciKlass* that) {
assert(is_loaded() && that->is_loaded(), "must be loaded");
assert(is_java_klass() && that->is_java_klass(), "must be java klasses");
// Check to see if the klasses are identical.
src/share/vm/ci/ciKlass.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File