src/hotspot/share/oops/instanceKlass.cpp
changeset 58722 cba8afa5cfed
parent 58668 eda750f21308
child 58783 d55b62dbe688
equal deleted inserted replaced
58720:ae0af9fb3dbb 58722:cba8afa5cfed
  2592 
  2592 
  2593   char* dest = NEW_RESOURCE_ARRAY(char, src_length + hash_len + 3);
  2593   char* dest = NEW_RESOURCE_ARRAY(char, src_length + hash_len + 3);
  2594 
  2594 
  2595   // Add L as type indicator
  2595   // Add L as type indicator
  2596   int dest_index = 0;
  2596   int dest_index = 0;
  2597   dest[dest_index++] = 'L';
  2597   dest[dest_index++] = JVM_SIGNATURE_CLASS;
  2598 
  2598 
  2599   // Add the actual class name
  2599   // Add the actual class name
  2600   for (int src_index = 0; src_index < src_length; ) {
  2600   for (int src_index = 0; src_index < src_length; ) {
  2601     dest[dest_index++] = src[src_index++];
  2601     dest[dest_index++] = src[src_index++];
  2602   }
  2602   }
  2605   for (int hash_index = 0; hash_index < hash_len; ) {
  2605   for (int hash_index = 0; hash_index < hash_len; ) {
  2606     dest[dest_index++] = hash_buf[hash_index++];
  2606     dest[dest_index++] = hash_buf[hash_index++];
  2607   }
  2607   }
  2608 
  2608 
  2609   // Add the semicolon and the NULL
  2609   // Add the semicolon and the NULL
  2610   dest[dest_index++] = ';';
  2610   dest[dest_index++] = JVM_SIGNATURE_ENDCLASS;
  2611   dest[dest_index] = '\0';
  2611   dest[dest_index] = '\0';
  2612   return dest;
  2612   return dest;
  2613 }
  2613 }
  2614 
  2614 
  2615 // Used to obtain the package name from a fully qualified class name.
  2615 // Used to obtain the package name from a fully qualified class name.