--- 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);