United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7082949 JSR 292: missing ResourceMark in methodOopDesc::make_invoke_method
JDK-7082949 : JSR 292: missing ResourceMark in methodOopDesc::make_invoke_method

Details
Type:
Bug
Submit Date:
2011-08-24
Status:
Closed
Updated Date:
2013-04-24
Project Name:
JDK
Resolved Date:
2011-11-28
Component:
hotspot
OS:
solaris_10
Sub-Component:
compiler
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs22
Fixed Versions:
hs22 (b05)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
In looking for my classDefNotFound bug I tried the latest build I could find for bsd port. 

The 0609 version worked at least past this point but the 0808 version gave a fatal error 

#  fatal error: memory leak: allocating without ResourceMark 

V  [libjvm.dylib+0x22ebd]  VMError::report_and_die()+0x13d 
V  [libjvm.dylib+0xd1e4]  report_vm_error(char const*, int, char const*, char const*)+0x84 
V  [libjvm.dylib+0x1f8be]  resource_allocate_bytes(unsigned long)+0x14e 
V  [libjvm.dylib+0x9f10c7]  methodOopDesc::make_invoke_method(KlassHandle, Symbol*, Symbol*, Handle, Thread*)+0x387 
V  [libjvm.dylib+0xbebd8d]  SystemDictionary::find_method_handle_invoke(Symbol*, Symbol*, KlassHandle, Thread*)+0x36d 
V  [libjvm.dylib+0x8e7238]  LinkResolver::lookup_implicit_method(methodHandle&, KlassHandle, Symbol*, Symbol*, KlassHandle, Thread*)+0x108 
V  [libjvm.dylib+0x8e943e]  LinkResolver::resolve_method(methodHandle&, KlassHandle, Symbol*, Symbol*, KlassHandle, bool, Thread*)+0xc7e 
V  [libjvm.dylib+0x8ed466]  LinkResolver::linktime_resolve_virtual_method(methodHandle&, KlassHandle, Symbol*, Symbol*, KlassHandle, bool, Thread*)+0x36 
V  [libjvm.dylib+0x8ee539]  LinkResolver::resolve_virtual_call(CallInfo&, Handle, KlassHandle, KlassHandle, Symbol*, Symbol*, KlassHandle, bool, bool, Thread*)+0x59 
V  [libjvm.dylib+0x8ee758]  LinkResolver::resolve_invokevirtual(CallInfo&, Handle, constantPoolHandle, int, Thread*)+0x1b8 
V  [libjvm.dylib+0x6c43ec]  InterpreterRuntime::resolve_invoke(JavaThread*, Bytecodes::Code)+0x2ac 
j  ri.core.rtalk.RtCallSite.sendSmToRtalk([B)Z+79 
j  ri.experiment2.TestSm$1.run()V+7

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/ac8738449b6f
                                     
2011-08-26
EVALUATION

7082949: JSR 292: missing ResourceMark in methodOopDesc::make_invoke_method
Reviewed-by: kvn, twisti

The fix for 7056328 added some resource allocation in some cases when
building the invoke method but didn't insert a ResourceMark.  Mostly
we ended up using one in a caller but sometimes the caller doesn't
have one so this code needs its own.  Tested with failing test case.
                                     
2011-08-26
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/ac8738449b6f
                                     
2011-09-08
EVALUATION

See main CR
                                     
2011-09-14



Hardware and Software, Engineered to Work Together