1.1 --- a/src/share/vm/opto/callnode.hpp Tue Nov 25 13:14:07 2008 -0800 1.2 +++ b/src/share/vm/opto/callnode.hpp Wed Dec 03 13:41:37 2008 -0800 1.3 @@ -780,7 +780,8 @@ 1.4 //------------------------------AbstractLockNode----------------------------------- 1.5 class AbstractLockNode: public CallNode { 1.6 private: 1.7 - bool _eliminate; // indicates this lock can be safely eliminated 1.8 + bool _eliminate; // indicates this lock can be safely eliminated 1.9 + bool _coarsened; // indicates this lock was coarsened 1.10 #ifndef PRODUCT 1.11 NamedCounter* _counter; 1.12 #endif 1.13 @@ -801,6 +802,7 @@ 1.14 public: 1.15 AbstractLockNode(const TypeFunc *tf) 1.16 : CallNode(tf, NULL, TypeRawPtr::BOTTOM), 1.17 + _coarsened(false), 1.18 _eliminate(false) 1.19 { 1.20 #ifndef PRODUCT 1.21 @@ -819,6 +821,9 @@ 1.22 // mark node as eliminated and update the counter if there is one 1.23 void set_eliminated(); 1.24 1.25 + bool is_coarsened() { return _coarsened; } 1.26 + void set_coarsened() { _coarsened = true; } 1.27 + 1.28 // locking does not modify its arguments 1.29 virtual bool may_modify(const TypePtr *addr_t, PhaseTransform *phase){ return false;} 1.30