mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8155672: Remove instanceKlassHandles and KlassHandles
Use unhandled pointers for Klass and InstanceKlass, remove handles with no implementation. Reviewed-by: dholmes, lfoltan, vlivanov, sspitsyn
This commit is contained in:
parent
7bca463789
commit
4b9562288f
152 changed files with 1892 additions and 2112 deletions
|
@ -265,11 +265,10 @@ Handle Exceptions::new_exception(Thread *thread, Symbol* name,
|
|||
Handle h_exception;
|
||||
|
||||
// Resolve exception klass
|
||||
Klass* ik = SystemDictionary::resolve_or_fail(name, h_loader, h_protection_domain, true, thread);
|
||||
instanceKlassHandle klass(thread, ik);
|
||||
InstanceKlass* klass = InstanceKlass::cast(SystemDictionary::resolve_or_fail(name, h_loader, h_protection_domain, true, thread));
|
||||
|
||||
if (!thread->has_pending_exception()) {
|
||||
assert(klass.not_null(), "klass must exist");
|
||||
assert(klass != NULL, "klass must exist");
|
||||
// We are about to create an instance - so make sure that klass is initialized
|
||||
klass->initialize(thread);
|
||||
if (!thread->has_pending_exception()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue