src/hotspot/share/prims/jvm.cpp
changeset 50217 843fc56f4686
parent 50113 caf115bb98ad
child 50429 83aec1d357d4
--- a/src/hotspot/share/prims/jvm.cpp	Fri May 18 15:35:32 2018 +0200
+++ b/src/hotspot/share/prims/jvm.cpp	Fri May 18 09:15:08 2018 -0700
@@ -1200,11 +1200,8 @@
 // and null permissions - which gives no permissions.
 oop create_dummy_access_control_context(TRAPS) {
   InstanceKlass* pd_klass = SystemDictionary::ProtectionDomain_klass();
-  Handle obj = pd_klass->allocate_instance_handle(CHECK_NULL);
   // Call constructor ProtectionDomain(null, null);
-  JavaValue result(T_VOID);
-  JavaCalls::call_special(&result, obj, pd_klass,
-                          vmSymbols::object_initializer_name(),
+  Handle obj = JavaCalls::construct_new_instance(pd_klass,
                           vmSymbols::codesource_permissioncollection_signature(),
                           Handle(), Handle(), CHECK_NULL);