nmethod::has_dependencies() always return true?

Roland Westrelin Roland.Westrelin at oracle.COM
Thu Jun 28 03:43:28 PDT 2012

I noticed on one of my tests that nmethod::has_dependencies() for an nmethod that has no dependency returned true.
Given ciEnv::register_method() calls dependencies()->encode_content_bytes() whether the compilation recorded dependencies or not and Dependencies::encode_content_bytes() always at least add a sentinel byte, it seems to make sense that Dependencies::size_in_bytes() is always strictly positive and so that nmethod::has_dependencies() always return true.


More information about the hotspot-compiler-dev mailing list