Skip to content

Commit 2be3e7e

Browse files
committed
8278239: vmTestbase/nsk/jvmti/RedefineClasses/StressRedefine failed with EXCEPTION_ACCESS_VIOLATION at 0x000000000000000d
Reviewed-by: kvn, sspitsyn, eosterlund
1 parent dfb15c3 commit 2be3e7e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hotspot/share/code/codeCache.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ void CodeCache::nmethods_do(void f(nmethod* nm)) {
678678

679679
void CodeCache::metadata_do(MetadataClosure* f) {
680680
assert_locked_or_safepoint(CodeCache_lock);
681-
NMethodIterator iter(NMethodIterator::only_alive_and_not_unloading);
681+
NMethodIterator iter(NMethodIterator::only_alive);
682682
while(iter.next()) {
683683
iter.method()->metadata_do(f);
684684
}
@@ -1032,7 +1032,7 @@ CompiledMethod* CodeCache::find_compiled(void* start) {
10321032
}
10331033

10341034
#if INCLUDE_JVMTI
1035-
// RedefineClasses support for unloading nmethods that are dependent on "old" methods.
1035+
// RedefineClasses support for saving nmethods that are dependent on "old" methods.
10361036
// We don't really expect this table to grow very large. If it does, it can become a hashtable.
10371037
static GrowableArray<CompiledMethod*>* old_compiled_method_table = NULL;
10381038

@@ -1085,7 +1085,7 @@ int CodeCache::mark_dependents_for_evol_deoptimization() {
10851085
reset_old_method_table();
10861086

10871087
int number_of_marked_CodeBlobs = 0;
1088-
CompiledMethodIterator iter(CompiledMethodIterator::only_alive_and_not_unloading);
1088+
CompiledMethodIterator iter(CompiledMethodIterator::only_alive);
10891089
while(iter.next()) {
10901090
CompiledMethod* nm = iter.method();
10911091
// Walk all alive nmethods to check for old Methods.
@@ -1105,7 +1105,7 @@ int CodeCache::mark_dependents_for_evol_deoptimization() {
11051105

11061106
void CodeCache::mark_all_nmethods_for_evol_deoptimization() {
11071107
assert(SafepointSynchronize::is_at_safepoint(), "Can only do this at a safepoint!");
1108-
CompiledMethodIterator iter(CompiledMethodIterator::only_alive_and_not_unloading);
1108+
CompiledMethodIterator iter(CompiledMethodIterator::only_alive);
11091109
while(iter.next()) {
11101110
CompiledMethod* nm = iter.method();
11111111
if (!nm->method()->is_method_handle_intrinsic()) {

0 commit comments

Comments
 (0)