Skip to content

Commit

Permalink
Merge pull request #2 from przemelek/classRedefinedCount-fix
Browse files Browse the repository at this point in the history
Class redefined count fix
  • Loading branch information
skybber authored Nov 13, 2018
2 parents 4cded7d + fb4e133 commit 8650c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/prims/jvmtiEnhancedRedefineClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1904,7 +1904,7 @@ void VM_EnhancedRedefineClasses::increment_class_counter(InstanceKlass *ik, TRAP
oop class_mirror = ik->java_mirror();
Klass* class_oop = java_lang_Class::as_Klass(class_mirror);
int new_count = java_lang_Class::classRedefinedCount(class_mirror) + 1;
java_lang_Class::set_classRedefinedCount(class_mirror, new_count);
java_lang_Class::set_classRedefinedCount(ik->new_version()->java_mirror(), new_count);

if (class_oop != _the_class_oop) {
// _the_class_oop count is printed at end of redefine_single_class()
Expand Down

0 comments on commit 8650c87

Please sign in to comment.