Package org.jruby.runtime

Examples of org.jruby.runtime.ThreadContext.trace()


        // uber-ThreadKill catcher, since it should always just mean "be dead"
        try {
            // Call the thread's code
            RubyModule frameClass = proc.getBlock().getFrame().getKlazz();
            try {
                if (runtime.hasEventHooks() && runtime.is2_0()) context.trace(RubyEvent.THREAD_BEGIN, null, frameClass);
                IRubyObject result = proc.call(context, arguments);
                if (runtime.hasEventHooks() && runtime.is2_0()) context.trace(RubyEvent.THREAD_END, null, frameClass);
                rubyThread.cleanTerminate(result);
            } catch (JumpException.ReturnJump rj) {
                rubyThread.exceptionRaised(rj.buildException(runtime));
View Full Code Here


            // Call the thread's code
            RubyModule frameClass = proc.getBlock().getFrame().getKlazz();
            try {
                if (runtime.hasEventHooks() && runtime.is2_0()) context.trace(RubyEvent.THREAD_BEGIN, null, frameClass);
                IRubyObject result = proc.call(context, arguments);
                if (runtime.hasEventHooks() && runtime.is2_0()) context.trace(RubyEvent.THREAD_END, null, frameClass);
                rubyThread.cleanTerminate(result);
            } catch (JumpException.ReturnJump rj) {
                rubyThread.exceptionRaised(rj.buildException(runtime));
            } catch (MainExitException mee) {
                // Someone called exit!, so we need to kill the main thread
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.