mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8157464: Disallow StackWalker.getCallerClass() be called by caller-sensitive method
Reviewed-by: bchristi, coleenp, dfuchs, sspitsyn
This commit is contained in:
parent
cc223fcb91
commit
5460376f61
3 changed files with 17 additions and 3 deletions
|
@ -82,6 +82,9 @@ private:
|
|||
static void fill_live_stackframe(Handle stackFrame, const methodHandle& method, int bci,
|
||||
javaVFrame* jvf, TRAPS);
|
||||
|
||||
static inline bool get_caller_class(int mode) {
|
||||
return (mode & JVM_STACKWALK_GET_CALLER_CLASS) != 0;
|
||||
}
|
||||
static inline bool skip_hidden_frames(int mode) {
|
||||
return (mode & JVM_STACKWALK_SHOW_HIDDEN_FRAMES) == 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue