RFR (S) 8031818: Experimental VM flag for enforcing safe object construction (original) (raw)

Aleksey Shipilev aleksey.shipilev at oracle.com
Wed Jan 22 11:13:18 PST 2014


Hi Vladimir,

On 01/22/2014 11:07 PM, Vladimir Kozlov wrote:

Question first: can you wait about 2 weeks when we merge ppc64 changes?

I think we can wait. I don't want to collide with PPC merge either. In fact, it would be even more convenient for us to grab PPC C2 in the experiments from the mainline.

I was not clear. The enum is not important. What I want is instead of unreadable code like next:

if (wrotefinal() || (AlwaysSafeConstructors && wrotefields() && method()->name() == ciSymbol::objectinitializername()) PPC64ONLY(|| (wrotevolatile() && method()->isinitializer()))) {

Ugh. Yes, together with PPC changes the predicate is overblown. Makes total sense to extract the method, will do that in updated webrev once PPC change lands.

Thanks, -Aleksey.



More information about the hotspot-compiler-dev mailing list