Skip to content

Commit

Permalink
Fix crashes in MetadataOnStackMark::~MetadataOnSta
Browse files Browse the repository at this point in the history
MetadataOnStackMark shoukld not remove dcevm stuff. It was added accidentaly in dcevm9,
and never was part of doit() in previous versions.
  • Loading branch information
skybber committed Nov 13, 2018
1 parent 94f56a0 commit f7f5e6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hotspot/share/prims/jvmtiEnhancedRedefineClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,9 @@ void VM_EnhancedRedefineClasses::doit() {

// Mark methods seen on stack and everywhere else so old methods are not
// cleaned up if they're on the stack.
MetadataOnStackMark md_on_stack(true);

// FIXME: fails in enhanced redefinition
// MetadataOnStackMark md_on_stack(true);
HandleMark hm(thread); // make sure any handles created are deleted
// before the stack walk again.

Expand Down

0 comments on commit f7f5e6e

Please sign in to comment.