Mercurial > hg > graal-compiler
comparison src/share/vm/oops/klass.cpp @ 2491:0654ee04b214
Merge with OpenJDK.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 22 Apr 2011 15:30:53 +0200 |
parents | d25d4ca69222 1d1603768966 |
children | 75a99b4f1c98 |
comparison
equal
deleted
inserted
replaced
2490:29246b1d2d3c | 2491:0654ee04b214 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2011, 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. |
499 | 499 |
500 const char* Klass::external_name() const { | 500 const char* Klass::external_name() const { |
501 if (oop_is_instance()) { | 501 if (oop_is_instance()) { |
502 instanceKlass* ik = (instanceKlass*) this; | 502 instanceKlass* ik = (instanceKlass*) this; |
503 if (ik->is_anonymous()) { | 503 if (ik->is_anonymous()) { |
504 assert(AnonymousClasses, ""); | 504 assert(EnableInvokeDynamic, ""); |
505 intptr_t hash = ik->java_mirror()->identity_hash(); | 505 intptr_t hash = ik->java_mirror()->identity_hash(); |
506 char hash_buf[40]; | 506 char hash_buf[40]; |
507 sprintf(hash_buf, "/" UINTX_FORMAT, (uintx)hash); | 507 sprintf(hash_buf, "/" UINTX_FORMAT, (uintx)hash); |
508 size_t hash_len = strlen(hash_buf); | 508 size_t hash_len = strlen(hash_buf); |
509 | 509 |