src/hotspot/share/prims/jvmtiImpl.cpp
changeset 54847 59ea39bb2809
parent 54786 ebf733a324d4
child 55117 b6418e5aad70
child 58678 9cf78a70fa4f
equal deleted inserted replaced
54846:e4049522b074 54847:59ea39bb2809
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   607   int len = (int) strlen(ty_sign);
   607   int len = (int) strlen(ty_sign);
   608   if (ty_sign[0] == 'L' && ty_sign[len-1] == ';') { // Need pure class/interface name
   608   if (ty_sign[0] == 'L' && ty_sign[len-1] == ';') { // Need pure class/interface name
   609     ty_sign++;
   609     ty_sign++;
   610     len -= 2;
   610     len -= 2;
   611   }
   611   }
   612   TempNewSymbol ty_sym = SymbolTable::new_symbol(ty_sign, len, thread);
   612   TempNewSymbol ty_sym = SymbolTable::new_symbol(ty_sign, len);
   613   if (klass->name() == ty_sym) {
   613   if (klass->name() == ty_sym) {
   614     return true;
   614     return true;
   615   }
   615   }
   616   // Compare primary supers
   616   // Compare primary supers
   617   int super_depth = klass->super_depth();
   617   int super_depth = klass->super_depth();