nmethod::has_dependencies() always return true? (original) (raw)
Roland Westrelin Roland.Westrelin at oracle.COM
Thu Jun 28 03:43:28 PDT 2012
- Previous message: hg: hsx/hotspot-comp/hotspot: 7179138: Incorrect result with String concatenation optimization
- Next message: hg: hsx/hotspot-comp/hotspot: 23 new changesets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
Roland.
- Previous message: hg: hsx/hotspot-comp/hotspot: 7179138: Incorrect result with String concatenation optimization
- Next message: hg: hsx/hotspot-comp/hotspot: 23 new changesets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the hotspot-compiler-dev mailing list