Git Product home page Git Product logo

dyco4j's People

Contributors

rvprasad avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

dyco4j's Issues

Incorrect instrumentation of constructors causes VerifyError during execution of instrumented code

When the instrumentation injects an outermost exception handler in X(X s), the handler covers the super call. Since this variable is uninitialized before the super call and then initialized after the super call, there is a conflict in the frames that reach the handler; specifically, they differ in terms of flags (refer to section 4.10 of the Java Virtual Machine Specification, Java 8 Edition).

Here's an example to repro the issue. Compile it and run class X.

public class X extends Y {
    public X(X s) {
        super(new Y("as"));
    }

    public static void main(String[] s) { }
}

class Y {
    Y(Object o) {}
}

Prepare readme

  • Describe how to generate logs for open source project.

Exceptions thrown in superclass <init> are not logged in the subclass <init>

Due to the bug 8172282 in JDK 8u112, the commit 45cef8e to fix issue #35 splits the outermost exception handler to not cover the call to the super class method. Once the JDK bug is fixed, address this issue by following the instructions for FIXME-1 in InitTracingMethodVisitor.java and make sure all tests pass; specifically, the ones in instrumentation:dyco4j/instrumentation/internals/CLIInitializerInstrumentationTest.groovy.

Support to associate call site logs to call sites

Currently, logs of two different call sites (for the same invoked method) in a method cannot be differentiated. So, associate a call site id to differentiate logs from different call sites in a method.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.