src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.hpp

changeset 2242
cd3ef3fd20dd
parent 2192
c99c53f07c14
child 2314
f95d63e2154a
equal deleted inserted replaced
2241:72a161e62cc4 2242:cd3ef3fd20dd
118 static bool cms_thread_wants_cms_token() { 118 static bool cms_thread_wants_cms_token() {
119 return CMS_flag_is_set(CMS_cms_wants_token); 119 return CMS_flag_is_set(CMS_cms_wants_token);
120 } 120 }
121 121
122 // Wait on CMS lock until the next synchronous GC 122 // Wait on CMS lock until the next synchronous GC
123 // or given timeout, whichever is earlier. 123 // or given timeout, whichever is earlier. A timeout value
124 void wait_on_cms_lock(long t); // milliseconds 124 // of 0 indicates that there is no upper bound on the wait time.
125 // A concurrent full gc request terminates the wait.
126 void wait_on_cms_lock(long t_millis);
125 127
126 // The CMS thread will yield during the work portion of its cycle 128 // The CMS thread will yield during the work portion of its cycle
127 // only when requested to. Both synchronous and asychronous requests 129 // only when requested to. Both synchronous and asychronous requests
128 // are provided: 130 // are provided:
129 // (1) A synchronous request is used for young gen collections and 131 // (1) A synchronous request is used for young gen collections and

mercurial