Skip to content


Browse files Browse the repository at this point in the history
8265061: Simplify MethodHandleNatives::canBeCalledVirtual
Reviewed-by: jvernee, mchung
  • Loading branch information
cl4es committed Apr 13, 2021
1 parent 1935655 commit 7006070
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -667,11 +667,8 @@ static boolean isCallerSensitive(MemberName mem) {

static boolean canBeCalledVirtual(MemberName mem) {
switch (mem.getName()) {
case "getContextClassLoader":
return canBeCalledVirtual(mem, java.lang.Thread.class);
return false;
return mem.getName().equals("getContextClassLoader") &&
canBeCalledVirtual(mem, java.lang.Thread.class);

static boolean canBeCalledVirtual(MemberName symbolicRef, Class<?> definingClass) {
Expand Down

1 comment on commit 7006070

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.