Mercurial > hg > graal-jvmci-8
comparison agent/src/share/classes/sun/jvm/hotspot/oops/ConstantPool.java @ 8104:f16e75e0cf11
8000797: NPG: is_pseudo_string_at() doesn't work
Summary: Zero Symbol* for constant pool strings to indicate pseudo_strings (objects that aren't strings). Clean up JVM_CONSTANT_Object and unused flags.
Reviewed-by: sspitsyn, jrose
author | coleenp |
---|---|
date | Fri, 22 Feb 2013 08:36:42 -0500 |
parents | 18fb7da42534 |
children | b8a500a7b9bf 64156d22e49d |
comparison
equal
deleted
inserted
replaced
8103:5ed317b25e23 | 8104:f16e75e0cf11 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2000, 2013, 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. |
467 case JVM_CONSTANT_ClassIndex: return "JVM_CONSTANT_ClassIndex"; | 467 case JVM_CONSTANT_ClassIndex: return "JVM_CONSTANT_ClassIndex"; |
468 case JVM_CONSTANT_StringIndex: return "JVM_CONSTANT_StringIndex"; | 468 case JVM_CONSTANT_StringIndex: return "JVM_CONSTANT_StringIndex"; |
469 case JVM_CONSTANT_UnresolvedClassInError: return "JVM_CONSTANT_UnresolvedClassInError"; | 469 case JVM_CONSTANT_UnresolvedClassInError: return "JVM_CONSTANT_UnresolvedClassInError"; |
470 case JVM_CONSTANT_MethodHandleInError:return "JVM_CONSTANT_MethodHandleInError"; | 470 case JVM_CONSTANT_MethodHandleInError:return "JVM_CONSTANT_MethodHandleInError"; |
471 case JVM_CONSTANT_MethodTypeInError: return "JVM_CONSTANT_MethodTypeInError"; | 471 case JVM_CONSTANT_MethodTypeInError: return "JVM_CONSTANT_MethodTypeInError"; |
472 case JVM_CONSTANT_Object: return "JVM_CONSTANT_Object"; | |
473 } | 472 } |
474 throw new InternalError("Unknown tag: " + tag); | 473 throw new InternalError("Unknown tag: " + tag); |
475 } | 474 } |
476 | 475 |
477 public void iterateFields(MetadataVisitor visitor) { | 476 public void iterateFields(MetadataVisitor visitor) { |