RFR (XS) 8023976: assert(!CompilationPolicy::can_be_compiled(this, comp_level)) failed: sanity check

Vladimir Ivanov vladimir.x.ivanov at oracle.com
Thu Aug 29 08:33:21 PDT 2013

18 lines changed: 16 ins; 0 del; 2 mod;

This assertion (part of 8022832) doesn't hold for method handle 
intrinsics (MethodHandle::linkTo*): they should be always "compilable", 
even if a method is marked as not compilable - there's a special case in 

These methods can be marked as not compilable when, for example, 
-XX:CompileOnly command is used.

There is a discrepancy between Method::is_not_c[12]_compilable() and 
Method::is_not_compilable(). Instead of changing the assertion, I try to 
avoid marking MH intrinsics as not compilable.

Testing: failing test, HS regression tests.


Best regards,
Vladimir Ivanov

More information about the hotspot-compiler-dev mailing list