--- old/src/share/vm/prims/jvmtiImpl.cpp 2015-04-15 12:03:18.376494074 -0700 +++ new/src/share/vm/prims/jvmtiImpl.cpp 2015-04-15 12:03:18.227483654 -0700 @@ -299,8 +299,8 @@ Method* method = methods->at(i); // Only set breakpoints in running EMCP methods. if (method->is_running_emcp() && - method->name() == m_name && - method->signature() == m_signature) { + method->name()->equals(m_name) && + method->signature()->equals(m_signature)) { RC_TRACE(0x00000800, ("%sing breakpoint in %s(%s)", meth_act == &Method::set_breakpoint ? "sett" : "clear", method->name()->as_C_string(), @@ -605,21 +605,21 @@ len -= 2; } TempNewSymbol ty_sym = SymbolTable::new_symbol(ty_sign, len, thread); - if (klass->name() == ty_sym) { + if (klass->name()->equals(ty_sym)) { return true; } // Compare primary supers int super_depth = klass->super_depth(); int idx; for (idx = 0; idx < super_depth; idx++) { - if (klass->primary_super_of_depth(idx)->name() == ty_sym) { + if (klass->primary_super_of_depth(idx)->name()->equals(ty_sym)) { return true; } } // Compare secondary supers Array* sec_supers = klass->secondary_supers(); for (idx = 0; idx < sec_supers->length(); idx++) { - if (((Klass*) sec_supers->at(idx))->name() == ty_sym) { + if (((Klass*) sec_supers->at(idx))->name()->equals(ty_sym)) { return true; } }