--- old/src/share/vm/gc/parallel/psCompactionManager.cpp 2016-01-13 15:13:36.431849104 +0100 +++ new/src/share/vm/gc/parallel/psCompactionManager.cpp 2016-01-13 15:13:36.331846149 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -124,6 +124,13 @@ "Not initialized?"); } +void ParCompactionManager::reset_cache_for_bitmap() { + uint parallel_gc_threads = PSParallelCompact::gc_task_manager()->workers(); + for (uint i=0; i<=parallel_gc_threads; i++) { + _manager_array[i]->set_last_query_begin(NULL); + } +} + int ParCompactionManager::pop_recycled_stack_index() { assert(_recycled_bottom <= _recycled_top, "list is empty"); // Get the next available index