JDK-6409915 : assertion failure in compiler on retransformation -- old methods not in context
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2006-04-06
  • Updated: 2011-02-16
  • Resolved: 2006-05-04
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.
JDK 6
6Resolved
Related Reports
Duplicate :  
Description
When all core classes have been had the null retransformation applied to them the following assertion fails.

Currently tested only in client compiler in a debug build.  Only happens sporatically unless -Xcomp is used, in which case failure is regular.

---------------------------------------------------------

Dependency method not found in the associated context:
  context = java.io.BufferedWriter
  method =  java.io.Writer::write
  found =  java.io.Writer::write
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/dependencies.cpp:1150]
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  Internal Error (/net/jpda.sfbay/export/home/ws/hs/e/src/share/vm/code/dependencies.cpp, 1150 [ Patched ]), pid=29566, tid=7
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-internal-debug mixed mode)
#
# Error: assert(wf.check_method_context(ctxk, m),"proper context")
# An error report file with more information is saved as hs_err_pid29566.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Current thread is 7
Dumping core ...

Comments
EVALUATION Fixed as part of 6404550, closing as a dup of that.
04-05-2006

SUGGESTED FIX Restore the is_old flag on methods so that compilation and some other operations will be avoided on old methods.
06-04-2006

EVALUATION This problem is caused because the compiler (and, it would appear, other parts of HotSpot) expect that a method will be a member of its class. This failure is a problem in its own right and is also a blocker for addressing other redefine/retransform issues.
06-04-2006