6953483: Typo related to ReduceInitialCardMarks leaves concurrent collectors vulnerable to heap corruption
authorysr
Wed, 19 May 2010 10:37:05 -0700
changeset 5543 95c4cdd5b505
parent 5542 be05c5ffe905
child 5544 de5f430a289c
6953483: Typo related to ReduceInitialCardMarks leaves concurrent collectors vulnerable to heap corruption Summary: Corrected mis-spelling of COMPILER2 in #ifdef, which could cause heap corruption in CMS due to precleaning when +ReduceInitialCardMarks. Thanks to ChenGuang Sun <suncg03@gmail.com> for bringing this typo to our attention. Reviewed-by: tonyp, jmasa, jcoomes, kvn
hotspot/src/share/vm/gc_interface/collectedHeap.cpp
--- a/hotspot/src/share/vm/gc_interface/collectedHeap.cpp	Tue May 18 11:02:18 2010 -0700
+++ b/hotspot/src/share/vm/gc_interface/collectedHeap.cpp	Wed May 19 10:37:05 2010 -0700
@@ -65,7 +65,7 @@
 void CollectedHeap::pre_initialize() {
   // Used for ReduceInitialCardMarks (when COMPILER2 is used);
   // otherwise remains unused.
-#ifdef COMPLER2
+#ifdef COMPILER2
   _defer_initial_card_mark =    ReduceInitialCardMarks && can_elide_tlab_store_barriers()
                              && (DeferInitialCardMark || card_mark_must_follow_store());
 #else