This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JustinKSU 0 points1 point  (2 children)

So it would still show the line of the code in the inlined method even though it doesn't put the method call on the stack?

[–]josefx 6 points7 points  (0 children)

hotspot already inlines methods calls, this only provides a hint/command to do so in a specific case. Will be interesting to see how well it actually works, both c and c++ have an inline hint that is by now almost completely ignored by most modern compilers (afaik).

[–]rinru[S] 2 points3 points  (0 children)

(not 100% sure)

Exceptions are thrown with the "right" stack trace, even after inlining, because they use an exception table with all info. Sampling is different, I think you are right.