hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/cmsLockVerifier.hpp
changeset 4574 b2d5b0975515
parent 1 489c9b5090e2
child 5547 f4b087cbb361
equal deleted inserted replaced
4481:de92ec484f5e 4574:b2d5b0975515
    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 };