Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8204024 | 11.0.1 | Ioi Lam | P4 | Resolved | Fixed | team |
There's a lot of boilerplate code, e.g.;
http://hg.openjdk.java.net/jdk/jdk/file/bd3e4517dfa3/src/hotspot/share/services/attachListener.cpp#l418
instanceHandle thread_oop = klass->allocate_instance_handle(THREAD);
....
JavaValue result(T_VOID);
JavaCalls::call_special(&result, thread_oop,
klass,
vmSymbols::object_initializer_name(),
vmSymbols::threadgroup_string_void_signature(),
thread_group,
string,
THREAD);
It's better to replace this code with new JavaCalls::construct_new_instance API introduced inJDK-8189140.
http://hg.openjdk.java.net/jdk/jdk/file/bd3e4517dfa3/src/hotspot/share/services/attachListener.cpp#l418
instanceHandle thread_oop = klass->allocate_instance_handle(THREAD);
....
JavaValue result(T_VOID);
JavaCalls::call_special(&result, thread_oop,
klass,
vmSymbols::object_initializer_name(),
vmSymbols::threadgroup_string_void_signature(),
thread_group,
string,
THREAD);
It's better to replace this code with new JavaCalls::construct_new_instance API introduced in
- backported by
-
JDK-8204024 Replace InstanceKlass::allocate_instance_handle with JavaCalls::construct_new_instance
-
- Resolved
-
- relates to
-
JDK-8189140 SystemDictionaryShared::initialize() should be renamed to be more meaningful
-
- Resolved
-