Skip to content

Commit 6c35011

Browse files
author
Robert Lougher
committed
JSR 292: rename the mb field in InvDynMethodBlock
As for the mb field in PolyMethodBlock, the mb in InvDynMethodBlock is the callsite invoker. Signed-off-by: Robert Lougher <rob@jamvm.org.uk>
1 parent 6b1e295 commit 6c35011

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/classlib/openjdk/mh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ InvDynMethodBlock *resolveCallSite(ResolvedInvDynCPEntry *entry,
11151115

11161116
InvDynMethodBlock *idmb = sysMalloc(sizeof(InvDynMethodBlock));
11171117

1118-
idmb->mb = invoker;
1118+
idmb->invoker = invoker;
11191119
idmb->appendix = ARRAY_DATA(appendix_box, Object*)[0];
11201120

11211121
#ifndef DIRECT

src/interp/engine/interp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2232,7 +2232,7 @@ uintptr_t *executeJava() {
22322232
if(idmb->appendix)
22332233
*ostack++ = (uintptr_t)idmb->appendix;
22342234

2235-
new_mb = idmb->mb;
2235+
new_mb = idmb->invoker;
22362236
arg1 = ostack - new_mb->args_count;
22372237

22382238
goto invokeMethod;

src/jam.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,8 @@ typedef struct invdyn_methodblock {
608608
#ifndef DIRECT
609609
int id;
610610
#endif
611-
MethodBlock *mb;
612611
Object *appendix;
612+
MethodBlock *invoker;
613613
struct invdyn_methodblock *next;
614614
} InvDynMethodBlock;
615615

0 commit comments

Comments
 (0)