Skip to content

Commit

Permalink
JACOBIN-592 Added tracing logic to handling of INVOKEVIRTUAL
Browse files Browse the repository at this point in the history
  • Loading branch information
platypusguy committed Nov 2, 2024
1 parent bfcce16 commit 50fa7c5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config/buildno.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

package config

var BuildNo = 3181
var BuildNo = 3182
2 changes: 1 addition & 1 deletion src/config/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "strconv"

// v 0.6.0 begun 8/31/24 at 3,012 GitHub commits

var JacobinVersion = "0.6.021"
var JacobinVersion = "0.6.022"

// GetJacobinVersion returns a manually updated version number and an
// automatically updated build #. The latter being updated by bumpbuildno.go
Expand Down
5 changes: 5 additions & 0 deletions src/jvm/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2037,6 +2037,11 @@ func doInvokeVirtual(fr *frames.Frame, _ int64) int {
popped := pop(fr)
params = append(params, popped)

if globals.TraceInst {
infoMsg := fmt.Sprintf("G-function: class=%s, meth=%s%s", className, methodName, methodType)
trace.Trace(infoMsg)
}

ret := gfunction.RunGfunction(mtEntry, fr.FrameStack, className, methodName, methodType, &params, true, MainThread.Trace)
// if err != nil {
if ret != nil {
Expand Down

0 comments on commit 50fa7c5

Please sign in to comment.