/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "precompiled.hpp"
#include "classfile/systemDictionary.hpp"
#include "code/codeCache.hpp"
#include "gc_implementation/parallelScavenge/gcTaskManager.hpp"
#include "gc_implementation/parallelScavenge/psMarkSweep.hpp"
#include "gc_implementation/parallelScavenge/psTasks.hpp"
#include "memory/iterator.hpp"
#include "memory/universe.hpp"
#include "oops/oop.inline.hpp"
#include "oops/oop.psgc.inline.hpp"
#include "runtime/fprofiler.hpp"
#include "runtime/thread.hpp"
#include "runtime/vmThread.hpp"
#include "services/management.hpp"
#include "utilities/taskqueue.hpp"
//
// ScavengeRootsTask
//
switch (_root_type) {
case universe:
break;
case jni_handles:
break;
case threads:
{
}
break;
case object_synchronizer:
break;
case flat_profiler:
break;
case system_dictionary:
break;
case management:
break;
case jvmti:
break;
case code_cache:
{
}
break;
default:
fatal("Unknown root type");
}
// Do the real work
pm->drain_stacks(false);
}
//
// ThreadRootsTask
//
if (_java_thread != NULL)
if (_vm_thread != NULL)
// Do the real work
pm->drain_stacks(false);
}
//
// StealTask
//
_terminator(t) {}
pm->drain_stacks(true);
"stacks should be empty at this point");
while(true) {
StarTask p;
pm->drain_stacks_depth(true);
} else {
if (terminator()->offer_termination()) {
break;
}
}
}
}
//
// SerialOldToYoungRootsTask
//
assert(_gen->object_space()->contains(_gen_top) || _gen_top == _gen->object_space()->top(), "Sanity");
{
// FIX ME! Assert that card_table is the type we believe it to be.
_gen->object_space(),
pm);
// Do the real work
pm->drain_stacks(false);
}
}
//
// OldToYoungRootsTask
//
assert(_gen->object_space()->contains(_gen_top) || _gen_top == _gen->object_space()->top(), "Sanity");
{
// FIX ME! Assert that card_table is the type we believe it to be.
_gen->object_space(),
pm,
// Do the real work
pm->drain_stacks(false);
}
}