7023639: JSR 292 method handle invocation needs a fast path for compiled code

6984705: JSR 292 method handle creation should not go through JNI

Remove assembly code for JDK 7 chained method handles

Co-authored-by: John Rose <john.r.rose@oracle.com>
Co-authored-by: Michael Haupt <michael.haupt@oracle.com>
Reviewed-by: jrose, twisti, kvn, mhaupt
This commit is contained in:
Christian Thalinger 2012-07-24 10:51:00 -07:00
parent 893817c28d
commit 12901d0e5b
181 changed files with 5760 additions and 14402 deletions

View file

@ -96,7 +96,7 @@ int Symbol::index_of_at(int i, const char* str, int len) const {
address scan = bytes + i;
if (scan > limit)
return -1;
for (;;) {
for (; scan <= limit; scan++) {
scan = (address) memchr(scan, first_char, (limit + 1 - scan));
if (scan == NULL)
return -1; // not found
@ -104,6 +104,7 @@ int Symbol::index_of_at(int i, const char* str, int len) const {
if (memcmp(scan, str, len) == 0)
return (int)(scan - bytes);
}
return -1;
}