Re: Could I use AnonymousClassLoader?

2015-03-12 Thread Kirill Shirokov
Hi Lev, Yes, you can pass NULL to CP patches argument [1]. AnonymousClassLoader is not supported and doesn't have to be correct [2]. Best regards, Kirill [1] http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/c82d1a19ffb5/src/share/vm/prims/unsafe.cpp#l1090 [2] https://bugs.openjdk.java.net/

Auto Reply: Re: hg: mlvm/mlvm/hotspot: 2 new changesets

2011-09-27 Thread kirill . shirokov
On vacation till October 3. Will be reading email occasionally. ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Auto Reply: Re: hg: mlvm/mlvm/hotspot: 2 new changesets

2011-09-27 Thread kirill . shirokov
On vacation till October 3. Will be reading email occasionally. ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Auto Reply: hg: mlvm/mlvm/jdk: 3 new changesets

2011-09-27 Thread kirill . shirokov
On vacation till October 3. Will be reading email occasionally. ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Auto Reply: Re: review request (L): 7030453: JSR 292 ClassValue.get method is too slow

2011-09-19 Thread kirill . shirokov
On vacation till October 3. Will be reading email occasionally. ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Auto Reply: hg: mlvm/mlvm/hotspot: update and consolidate jdk7-b147-to-bsd-port to match changes under review

2011-09-19 Thread kirill . shirokov
On vacation till October 3. Will be reading email occasionally. ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Auto Reply: Re: Request for review (L): 7087838: JSR 292: add throttling logic for optimistic call site optimizations

2011-09-19 Thread kirill . shirokov
On vacation till October 3. Will be reading email occasionally. ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Auto Reply: Illegal Instruction in debug_build

2011-09-18 Thread kirill . shirokov
On vacation till October 3. Will be reading email occasionally. ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Auto Reply: Re: Request for review (L): 7087838: JSR 292: add throttling logic for optimistic call site optimizations

2011-09-18 Thread kirill . shirokov
On vacation till October 3. Will be reading email occasionally. ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Auto Reply: SIGSEGV while Parse::optimize_inlining an invokedynamic call.

2011-09-17 Thread kirill . shirokov
On vacation till October 3. Will be reading email occasionally. ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Auto Reply: Auto Reply: Re: Request for review (L): 7087838: JSR 292: add throttling logic for optimistic call site optimizations

2011-09-17 Thread kirill . shirokov
On vacation till October 3. Will be reading email occasionally. ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Auto Reply: Re: Request for review (L): 7087838: JSR 292: add throttling logic for optimistic call site optimizations

2011-09-17 Thread kirill . shirokov
On vacation till October 3. Will be reading email occasionally. ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Re: JRuby can't compile benchmark. Also package renaming

2011-04-26 Thread Kirill Shirokov
On 04/06/2011 07:17 PM, Charles Oliver Nutter wrote: > 1. You can pass -d to JRuby to get the debug output from the failure, > or -Xjit.logging.verbose=true. I can take a look at this as soon as I > can update to java.lang.invoke. The compilation error is most probably caused by package rename: w

JRuby can't compile benchmark. Also package renaming

2011-04-06 Thread Kirill Shirokov
Hi Charlie, 1. There is a problem with JRuby: starting from b136 of JDK7, ruby refuses to compile benchmark when -Xcompile.invokedynamic=true: $ bin/jruby -X+C -Xcompile.invokedynamic=true bench/bench_fib_recursive.rb RuntimeError: could not compile and compile mode is 'force':

void return type for foldArguments combiner

2011-03-19 Thread Kirill Shirokov
Hi, 1. Can the combiner method in MethodHandles.foldArguments() have the void return type, so the combiner result is not passed to target? This would allow to easily add a debugging hook (or aspect) to a MethodHandle call. 2. Can I apply MethodHandles.filterReturnValue() to a void target meth

Projects, which use JSR292

2011-02-15 Thread Kirill Shirokov
Hi All, Oracle will make an one-day conference called "Java Tech Day" in St. Petersburg, Russia. There will be a section called "ask the experts" for a number of JDK7 features including JSR 292. I'm asked to be a live emulator of JSR292 expert there. I expect that people will ask about "real"

bootstrap method constant pool entry type question

2011-01-29 Thread Kirill Shirokov
The invokedynamic instruction requires a MethodHandle constant pool entry for a bootstrap method. This MH CP entry can be one of 9 REF_xxx types. Questions: Q1. Which types are valid in the case of bootstrap method? Q2. What happens if I try to use invalid types? I could not find answers in t

Re: How to filter results of a virtual method?

2011-01-27 Thread Kirill Shirokov
By the way, why exactInvoker() is needed? Isn't the following true? exactInvoker(target.type()).bindTo(target) == target Kirill On 01/27/2011 12:01 AM, Jim Laskey wrote: > I think it's a simple issue. Drop should use 1 instead of 0. > > > public static > MethodHandle filterReturnValue

Re: Arg ordering on the test path method handle for GwT

2011-01-15 Thread Kirill Shirokov
> > My question had to do with run time overhead. Do you think that > invokeGeneric > is slower than invokeEaxct at run time? If not then that removes one of the > reasons for not using java classes. Hi Mark, The current invokeGeneric argument conversion implementation has poor performance profi

Re: bad class file crash the VM

2011-01-03 Thread Kirill Shirokov
> While patching ASM in order to generate the new class file format, > I generate a class file that crash the VM > (see attachment). Hi Remi, Yes, VM definitely should not crash with invalid class files. I filed a bug and depending on Oracle bug visibility policy, it may appear at bugs.sun.com:

Re: Crash in Compile::find_intrinsic

2010-12-29 Thread Kirill Shirokov
Hi Remi, Thank you for reporting the crash. It can be tracked at: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7009600 Kirill ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Re: Crash in Compile::find_intrinsic

2010-12-29 Thread Kirill Shirokov
Hi Remi, Thank you for reporting the crash. It can be tracked at: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7009600 Kirill ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

InvokeDynamic throws NoClassDefFoundError

2010-02-18 Thread Kirill Shirokov
John, I don't know if it is a known issue, but I noticed that InvokeDynamic throws NoClassDefFoundError in the following test: package test; import java.dyn.InvokeDynamic; import java.dyn.InvokeDynamicBootstrapError; public class Self { public static void main(String[] arg

Re: mlvm-dev Digest, Vol 16, Issue 6

2009-03-17 Thread Kirill Shirokov
The following patch includes java.dyn.* classes into rt.jar: === diff -r fce4266e4a96 make/docs/CORE_PKGS.gmk --- a/make/docs/CORE_PKGS.gmk Mon Dec 22 19:49:22 2008 +0300 +++ b/make/docs/CORE_PKGS.gmk Thu Dec 25 22:02:47 2008 +0300 @@ -96,6 +96,9 @@ java.awt.print

Re: Re: hg: mlvm/mlvm/hotspot: meth: rebase to b42; improve implementation

2008-12-26 Thread Kirill Shirokov
Hi Ben, It seems that the following is a correct patch for these 2 files (Parser.java and Name.java): diff -r 871c1708de94 src/share/classes/com/sun/tools/javac/parser/JavacParser.java --- a/src/share/classes/com/sun/tools/javac/parser/JavacParser.java Tue Dec 23 05:50:59 2008 +0300 +++