6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.inline.hpp"
27 #include "gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.hpp"
28 #include "gc_implementation/concurrentMarkSweep/vmCMSOperations.hpp"
29 #include "gc_implementation/shared/gcTimer.hpp"
30 #include "gc_implementation/shared/gcTraceTime.hpp"
31 #include "gc_implementation/shared/isGCActiveMark.hpp"
32 #include "memory/gcLocker.inline.hpp"
33 #include "runtime/interfaceSupport.hpp"
34 #include "runtime/os.hpp"
35 #include "utilities/dtrace.hpp"
36
37 //////////////////////////////////////////////////////////
38 // Methods in abstract class VM_CMS_Operation
39 //////////////////////////////////////////////////////////
40 void VM_CMS_Operation::acquire_pending_list_lock() {
41 // The caller may block while communicating
42 // with the SLT thread in order to acquire/release the PLL.
43 SurrogateLockerThread* slt = ConcurrentMarkSweepThread::slt();
44 if (slt != NULL) {
45 slt->manipulatePLL(SurrogateLockerThread::acquirePLL);
46 } else {
47 SurrogateLockerThread::report_missing_slt();
48 }
49 }
50
51 void VM_CMS_Operation::release_and_notify_pending_list_lock() {
52 // The caller may block while communicating
|
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "gc/cms/concurrentMarkSweepGeneration.inline.hpp"
27 #include "gc/cms/concurrentMarkSweepThread.hpp"
28 #include "gc/cms/vmCMSOperations.hpp"
29 #include "gc/shared/gcLocker.inline.hpp"
30 #include "gc/shared/gcTimer.hpp"
31 #include "gc/shared/gcTraceTime.hpp"
32 #include "gc/shared/isGCActiveMark.hpp"
33 #include "runtime/interfaceSupport.hpp"
34 #include "runtime/os.hpp"
35 #include "utilities/dtrace.hpp"
36
37 //////////////////////////////////////////////////////////
38 // Methods in abstract class VM_CMS_Operation
39 //////////////////////////////////////////////////////////
40 void VM_CMS_Operation::acquire_pending_list_lock() {
41 // The caller may block while communicating
42 // with the SLT thread in order to acquire/release the PLL.
43 SurrogateLockerThread* slt = ConcurrentMarkSweepThread::slt();
44 if (slt != NULL) {
45 slt->manipulatePLL(SurrogateLockerThread::acquirePLL);
46 } else {
47 SurrogateLockerThread::report_missing_slt();
48 }
49 }
50
51 void VM_CMS_Operation::release_and_notify_pending_list_lock() {
52 // The caller may block while communicating
|