From 8cd95425c13f509fdcd771b236e6a34c4419b12a Mon Sep 17 00:00:00 2001 From: ysr Date: Wed, 19 May 2010 10:37:05 -0700 Subject: [PATCH] 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 for bringing this typo to our attention. Reviewed-by: tonyp, jmasa, jcoomes, kvn --- src/share/vm/gc_interface/collectedHeap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/vm/gc_interface/collectedHeap.cpp b/src/share/vm/gc_interface/collectedHeap.cpp index c5bf893c9..aacf6ed92 100644 --- a/src/share/vm/gc_interface/collectedHeap.cpp +++ b/src/share/vm/gc_interface/collectedHeap.cpp @@ -65,7 +65,7 @@ CollectedHeap::CollectedHeap() 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 -- GitLab