JDK-5079751 : Class bytes verification failes after repeated redefine
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-07-28
  • Updated: 2007-01-29
  • Resolved: 2004-08-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u4Fixed 6 mustangFixed
Description
Whes there is a repeated redefine of classes , the class byte verification fails and results in JVMTI error 62:
------------------------
I am in Native:  in Java_Redefine_RedefineClass
Inside Printme: BBBBBBBBBB
At count:24217
I am in Native:  in Java_Redefine_RedefineClass
Inside Printme: AAAAAAAAAA
At count:24218
I am in Native:  in Java_Redefine_RedefineClass
Inside Printme: BBBBBBBBBB
At count:24219
I am in Native:  in Java_Redefine_RedefineClass
RedefineImpl.c: Failed to call RedefineClasses():
62: ErrorID:
--------------------------
reproduciable on solsparc.

How to reproduce the fail:
cd /net/jano/export/disk20/GammaBase/Bugs/<BUG>
source env.csh
ksh run.ksh

Comments
SUGGESTED FIX This fix is included in a batch of JFluid/RedefineClasses fixes that is targeted for a Tiger-Update release. See the jfluid-merge-update4-full-webrev.tar.Z attachment in 5088035 for the complete set of changes. ###@###.### 2005-2-25 22:35:12 GMT
25-02-2005

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang FIXED IN: mustang INTEGRATED IN: mustang
31-08-2004

EVALUATION Name: dd4877 Date: 07/29/2004 daniel.daugherty@Sun 2004-07-29 JVM/TI error 62 is JVMTI_ERROR_FAILS_VERIFICATION. Here is the e-mail on the topic from Robert: >From Robert Field Date: 07/19/2004 08:26 PM Subject: Re: Error ID 62: Class bytes fail verification > It is not OK -- a bug should be sbmitted. Obviously not a showstopper. > Did it run out of memory? It's not filling memory, The machine has 16G memory. Also I tried it on windows and linux.All the platforms at about 24000 iterations this failure happens. ====================================================================== ###@###.### 2004-07-29 ###@###.### 2004-07-29 Not likely to be encountered by a customer. BEGIN::###@###.### 2004-08-12 See the comments section for evaluation information. In this case it is running out of memory with repeated redefine. So fix for this is to return a out of memory error instead of class verification failure error. END::###@###.### 2004-08-12
12-08-2004