diff -r 20c533b9e167 -r 77bf0d2069a3 hotspot/src/share/vm/gc/cms/vmCMSOperations.hpp --- a/hotspot/src/share/vm/gc/cms/vmCMSOperations.hpp Tue Sep 29 17:44:58 2015 +0200 +++ b/hotspot/src/share/vm/gc/cms/vmCMSOperations.hpp Wed Sep 30 09:07:21 2015 +0200 @@ -27,6 +27,7 @@ #include "gc/cms/concurrentMarkSweepGeneration.hpp" #include "gc/shared/gcCause.hpp" +#include "gc/shared/gcId.hpp" #include "gc/shared/vmGCOperations.hpp" #include "runtime/vm_operations.hpp" @@ -53,6 +54,7 @@ protected: CMSCollector* _collector; // associated collector bool _prologue_succeeded; // whether doit_prologue succeeded + uint _gc_id; bool lost_race() const; @@ -63,7 +65,8 @@ public: VM_CMS_Operation(CMSCollector* collector): _collector(collector), - _prologue_succeeded(false) {} + _prologue_succeeded(false), + _gc_id(GCId::current()) {} ~VM_CMS_Operation() {} // The legal collector state for executing this CMS op.