8031818: Experimental VM flag for enforcing safe object construction

-XX:+AlwaysSafeConstructors to unconditionally emit the trailing constructor barrier.

Reviewed-by: kvn, roland
This commit is contained in:
Aleksey Shipilev 2014-03-03 15:31:27 +04:00
parent c4bd0f58d3
commit 1d10b6813e
7 changed files with 74 additions and 22 deletions

View file

@ -535,6 +535,9 @@ class CommandLineFlags {
develop(bool, CleanChunkPoolAsync, falseInEmbedded, \
"Clean the chunk pool asynchronously") \
\
experimental(bool, AlwaysSafeConstructors, false, \
"Force safe construction, as if all fields are final.") \
\
/* Temporary: See 6948537 */ \
experimental(bool, UseMemSetInBOT, true, \
"(Unstable) uses memset in BOT updates in GC code") \