comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 6755:bc675e55b48c

7193946: Move warnings associated with UseMemSetInBOT flag Summary: The warnings associated with the UseMemSetInBOT flag are duplicated in CMS and G1. The separate warnings have been removed and single instance of the warning has been placed in a common location. Reviewed-by: brutisso, ysr
author johnc
date Wed, 19 Sep 2012 15:48:02 -0700
parents 8fbf05030e24
children b86575d092a2
comparison
equal deleted inserted replaced
6754:8fbf05030e24 6755:bc675e55b48c
1952 1952
1953 // Initialize the G1EvacuationFailureALot counters and flags. 1953 // Initialize the G1EvacuationFailureALot counters and flags.
1954 NOT_PRODUCT(reset_evacuation_should_fail();) 1954 NOT_PRODUCT(reset_evacuation_should_fail();)
1955 1955
1956 guarantee(_task_queues != NULL, "task_queues allocation failure."); 1956 guarantee(_task_queues != NULL, "task_queues allocation failure.");
1957 #ifdef SPARC
1958 // Issue a stern warning, but allow use for experimentation and debugging.
1959 if (VM_Version::is_sun4v() && UseMemSetInBOT) {
1960 assert(!FLAG_IS_DEFAULT(UseMemSetInBOT), "Error");
1961 warning("Experimental flag -XX:+UseMemSetInBOT is known to cause instability"
1962 " on sun4v; please understand that you are using at your own risk!");
1963 }
1964 #endif
1965 } 1957 }
1966 1958
1967 jint G1CollectedHeap::initialize() { 1959 jint G1CollectedHeap::initialize() {
1968 CollectedHeap::pre_initialize(); 1960 CollectedHeap::pre_initialize();
1969 os::enable_vtime(); 1961 os::enable_vtime();