United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8000459 assert(java_lang_String::is_instance(entry)) failure with various mlvm tests
JDK-8000459 : assert(java_lang_String::is_instance(entry)) failure with various mlvm tests

Details
Type:
Bug
Submit Date:
2012-10-05
Status:
Closed
Updated Date:
2013-07-18
Project Name:
JDK
Resolved Date:
2012-10-10
Component:
hotspot
OS:
generic
Sub-Component:
jvmti
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
hs24,hs25
Fixed Versions:
hs24 (master)

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:

Sub Tasks

Description
Following mlvm tests fail with assert(java_lang_String::is_instance(entry)):

vm/mlvm/mixed/func/hprof/formatB
vm/mlvm/mixed/func/hprof/heapAll
vm/mlvm/mixed/func/hprof/heapDump

The assertion failure is reproducible on x86 and ppc.
                                    

Comments
On 10/04/2012 02:44 PM, John Rose wrote:
> This is probably because the Unsafe object has been patched over a CONSTANT_String, using Unsafe.defineAnonymousClass.
>
> (The class loader should substitute CONSTANT_Object in such cases, if it doesn't now.)
>
> The assert needs to be detuned to allow this.  The verifier already is; see 'is_pseudo_string_at'.
>
> ??? John

                                     
2012-10-09
URL:   http://hg.openjdk.java.net/hsx/hsx24/hotspot/rev/69e0b33357cc
User:  jiangli
Date:  2012-10-10 22:43:38 +0000

                                     
2012-10-10



Hardware and Software, Engineered to Work Together