equal
deleted
inserted
replaced
27 // that it relaxes the assertion somewhat for the parallel GC case, where |
27 // that it relaxes the assertion somewhat for the parallel GC case, where |
28 // main GC thread or the CMS thread might hold the lock on behalf of |
28 // main GC thread or the CMS thread might hold the lock on behalf of |
29 // the parallel threads. |
29 // the parallel threads. |
30 class CMSLockVerifier: AllStatic { |
30 class CMSLockVerifier: AllStatic { |
31 public: |
31 public: |
32 static void assert_locked(const Mutex* lock, const Mutex* p_lock) |
32 static void assert_locked(const Mutex* lock, const Mutex* p_lock1, const Mutex* p_lock2) |
33 PRODUCT_RETURN; |
33 PRODUCT_RETURN; |
|
34 static void assert_locked(const Mutex* lock, const Mutex* p_lock) { |
|
35 assert_locked(lock, p_lock, NULL); |
|
36 } |
34 static void assert_locked(const Mutex* lock) { |
37 static void assert_locked(const Mutex* lock) { |
35 assert_locked(lock, NULL); |
38 assert_locked(lock, NULL); |
36 } |
39 } |
37 }; |
40 }; |