RFR[S] 8005165 Platform-independent C++ vtables for CDS (original) (raw)

Ioi Lam ioi.lam at oracle.com
Wed Mar 8 01:50:35 UTC 2017


On 3/7/17 4:04 PM, Jiangli Zhou wrote:

Hi Ioi,

Some minor comments/suggestions for the latest changes: You added MetaspaceShared::isvalidmethod(). There is an existing Method::isvalidmethod() function. It might cause confusion for anyone who’s not familiar with the CDS code when trying to determine which isvalidmethod() to use in the future. How about renaming MetaspaceShared::isvalidmethod() to isvalidarchivedmethod() and move it to method.*?

I renamed it to MetaspaceShared::is_valid_shared_method(), to be consistent with existing names such as MetaspaceShared::is_in_shared_space().

I don't want to move it to method.cpp because the logic of determining whether the Method's vptr points to the cloned vtable is inside metaspaceShared.cpp

Also, MetaspaceShared::isvalidsharedobject() might be more meaningful if it is rename as MetaspaceShared::isvalidsharedmetadata or MetaspaceShared::isvalidarchivemetadata. There's no MetaspaceShared::is_valid_shared_object(). I think you mean CppVtableCloner::is_valid_shared_object. The meaning of the name is pretty clear: is it a valid shared object of type

Thanks



More information about the hotspot-dev mailing list