Mercurial > hg > graal-compiler
comparison src/share/vm/oops/klass.cpp @ 2416:38fea01eb669
6817525: turn on method handle functionality by default for JSR 292
Summary: After appropriate testing, we need to turn on EnableMethodHandles and EnableInvokeDynamic by default.
Reviewed-by: never, kvn, jrose, phh
author | twisti |
---|---|
date | Thu, 31 Mar 2011 02:31:57 -0700 |
parents | 3582bf76420e |
children | 1d1603768966 |
comparison
equal
deleted
inserted
replaced
2415:09f96c3ff1ad | 2416:38fea01eb669 |
---|---|
498 | 498 |
499 const char* Klass::external_name() const { | 499 const char* Klass::external_name() const { |
500 if (oop_is_instance()) { | 500 if (oop_is_instance()) { |
501 instanceKlass* ik = (instanceKlass*) this; | 501 instanceKlass* ik = (instanceKlass*) this; |
502 if (ik->is_anonymous()) { | 502 if (ik->is_anonymous()) { |
503 assert(AnonymousClasses, ""); | 503 assert(EnableInvokeDynamic, ""); |
504 intptr_t hash = ik->java_mirror()->identity_hash(); | 504 intptr_t hash = ik->java_mirror()->identity_hash(); |
505 char hash_buf[40]; | 505 char hash_buf[40]; |
506 sprintf(hash_buf, "/" UINTX_FORMAT, (uintx)hash); | 506 sprintf(hash_buf, "/" UINTX_FORMAT, (uintx)hash); |
507 size_t hash_len = strlen(hash_buf); | 507 size_t hash_len = strlen(hash_buf); |
508 | 508 |