RFR 8203381 Replace InstanceKlass::allocate_instance_handle with JavaCalls::construct_new_instance
lois.foltan at oracle.com
Mon May 21 14:37:36 UTC 2018
On 5/18/2018 12:34 PM, Ioi Lam wrote:
> This patch removes a lot of the boilerplate code for allocating a
> Java object and calling its constructor. Hopefully the code is cleaner
> and easier to read.
> Added assert(InstanceKlass::is_initialized(), ...) in case where
> we cannot call JavaCalls::construct_new_instance for thread objects.
> Replaced unnecessary SystemDictionary::resolve_or_null() calls with
> Tested with hs-tier[1,2,3,4,5]
> - Ioi
Great cleanup, looks good!
More information about the hotspot-runtime-dev