Request for reviews (XS): 7017240: C2: native memory leak in nsk/regression/b4675027 on windows-x86 in comp mode with G1
vladimir.kozlov at oracle.com
Fri Feb 4 11:48:40 PST 2011
Fixed 7017240: C2: native memory leak in nsk/regression/b4675027 on windows-x86 in comp mode with G1
C2 adds additional code for G1 barriers so ideal graph
may become larger then with other collectors.
Also the compiled method itself is huge: 7102 bytes.
Main part of the problem is memory resources usage during
escape analysis and it will be resolved with 7013538 fix.
But I also noticed that PhaseIdealLoop::build_and_optimize()
allocates next arrays without freeing resources on exit
(there is no ResourceMark):
_idom = NEW_RESOURCE_ARRAY( Node*, _idom_size );
_dom_depth = NEW_RESOURCE_ARRAY( uint, _idom_size );
More information about the hotspot-compiler-dev