RFR: 8271420: Extend CDS custom loader support to Windows platform

Yumin Qi minqi at openjdk.java.net
Wed Nov 3 16:53:10 UTC 2021


On Tue, 2 Nov 2021 18:25:54 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

>> Currently CDS does not support custom loaders on Windows, this patch extends  the support to Windows 64 bit platform.
>> 
>> Tests: mach5 tier1-4
>> 
>> Thanks
>> Yumin
>
> src/hotspot/share/cds/heapShared.cpp line 283:
> 
>> 281:   }
>> 282: 
>> 283:   int len = (int)obj->size();
> 
> `obj->size()` already returns an `int` so I don't think the typecast is needed.
> I agree with Ioi that this file shouldn't be changed.

oop.hpp:105
  // Returns the actual oop size of the object
  inline size_t size();

-------------

PR: https://git.openjdk.java.net/jdk/pull/6202


More information about the hotspot-runtime-dev mailing list