comparison src/share/vm/utilities/workgroup.cpp @ 2491:0654ee04b214

Merge with OpenJDK.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 22 Apr 2011 15:30:53 +0200
parents 92da084fefc9
children bca17e38de00
comparison
equal deleted inserted replaced
2490:29246b1d2d3c 2491:0654ee04b214
1 /* 1 /*
2 * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
154 _task = NULL; 154 _task = NULL;
155 if (TraceWorkGang) { 155 if (TraceWorkGang) {
156 tty->print_cr("/nFinished work gang %s: %d/%d sequence %d", 156 tty->print_cr("/nFinished work gang %s: %d/%d sequence %d",
157 name(), finished_workers(), total_workers(), 157 name(), finished_workers(), total_workers(),
158 _sequence_number); 158 _sequence_number);
159 } 159 }
160 } 160 }
161 161
162 void AbstractWorkGang::stop() { 162 void AbstractWorkGang::stop() {
163 // Tell all workers to terminate, then wait for them to become inactive. 163 // Tell all workers to terminate, then wait for them to become inactive.
164 MutexLockerEx ml(monitor(), Mutex::_no_safepoint_check_flag); 164 MutexLockerEx ml(monitor(), Mutex::_no_safepoint_check_flag);