Re: hg: mlvm/mlvm/jdk: LF'ified makeAllocator; 18 MethodHandlesTests working
On 01/04/2012 05:28 PM, Christian Thalinger wrote: > On Dec 30, 2011, at 4:25 PM, Christian Thalinger wrote: > >> On Dec 30, 2011, at 3:45 PM, Rémi Forax wrote: >> >>> On 12/30/2011 03:26 PM, christian.thalin...@oracle.com wrote: Changeset: 700540b4b52b Author:twisti Date: 2011-12-30 15:25 +0100 URL: http://hg.openjdk.java.net/mlvm/mlvm/jdk/rev/700540b4b52b LF'ified makeAllocator; 18 MethodHandlesTests working ! meth-lazy-7023639.bcg.patch >>> Hi Christian, >>> I believe you should create the UNSAFE_ALLOCATEINSTANCE with >>> lookup.bind() instead of doing a findVirtual + a bindReceiver >>> to avoid to bind the receiver for each call of findConstructor. > Recent changes allows this now and I just pushed a changeset that does > exactly that. Thanks again! > > -- Chris :) Rémi ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: hg: mlvm/mlvm/jdk: LF'ified makeAllocator; 18 MethodHandlesTests working
On Dec 30, 2011, at 4:25 PM, Christian Thalinger wrote: > > On Dec 30, 2011, at 3:45 PM, Rémi Forax wrote: > >> On 12/30/2011 03:26 PM, christian.thalin...@oracle.com wrote: >>> Changeset: 700540b4b52b >>> Author:twisti >>> Date: 2011-12-30 15:25 +0100 >>> URL: http://hg.openjdk.java.net/mlvm/mlvm/jdk/rev/700540b4b52b >>> >>> LF'ified makeAllocator; 18 MethodHandlesTests working >>> >>> ! meth-lazy-7023639.bcg.patch >> >> Hi Christian, >> I believe you should create the UNSAFE_ALLOCATEINSTANCE with >> lookup.bind() instead of doing a findVirtual + a bindReceiver >> to avoid to bind the receiver for each call of findConstructor. Recent changes allows this now and I just pushed a changeset that does exactly that. Thanks again! -- Chris > > Good point. The reason why I'm not using it now but rather use something > like this: > >lzmh = (LazyMethodHandle) lzmh.bindReceiver(UNSAFE); >lzmh = (LazyMethodHandle) lzmh.bindArgument(0, allocateClass); > > is because MH.bindReceiver still uses BoundMethodHandle and I want to avoid > BMHs since I want to get rid of them. But as soon as DMHs have > LazyMethodHandle functionality I will change that code. > > -- Chris > >> >> BTW, nice to see that collect is not used anymore during the allocation. >> >> cheers, >> Rémi >> >> >> ___ >> mlvm-dev mailing list >> mlvm-dev@openjdk.java.net >> http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev > > ___ > mlvm-dev mailing list > mlvm-dev@openjdk.java.net > http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
hg: mlvm/mlvm/jdk: Use Lookup.bind for allocateInstance, as Remi suggested.
Changeset: 24fe29786f20 Author:twisti Date: 2012-01-04 17:26 +0100 URL: http://hg.openjdk.java.net/mlvm/mlvm/jdk/rev/24fe29786f20 Use Lookup.bind for allocateInstance, as Remi suggested. ! meth-lazy-7023639.bcg.patch ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
hg: mlvm/mlvm/jdk: Fixed AsVarargsCollector: OK (41 tests)
Changeset: 2054981e8c14 Author:twisti Date: 2012-01-04 15:29 +0100 URL: http://hg.openjdk.java.net/mlvm/mlvm/jdk/rev/2054981e8c14 Fixed AsVarargsCollector: OK (41 tests) ! meth-lazy-7023639.bcg.patch ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
hg: mlvm/mlvm/jdk: Fixed bug in LF.addArguments and (maybe) Name.replaceName{s}; Other changes to make more tests work: OK (38 tests)
Changeset: bbf98492394e Author:twisti Date: 2012-01-04 11:57 +0100 URL: http://hg.openjdk.java.net/mlvm/mlvm/jdk/rev/bbf98492394e Fixed bug in LF.addArguments and (maybe) Name.replaceName{s}; Other changes to make more tests work: OK (38 tests) ! meth-lazy-7023639.bcg.patch ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
hg: mlvm/mlvm/hotspot: meth-lazy: DMH primitives
Changeset: c6b7323d0f72 Author:jrose Date: 2012-01-04 02:14 -0800 URL: http://hg.openjdk.java.net/mlvm/mlvm/hotspot/rev/c6b7323d0f72 meth-lazy: DMH primitives ! meth-lazy-7023639.patch ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
hg: mlvm/mlvm/jdk: 2 new changesets
Changeset: ad89276ff677 Author:jrose Date: 2012-01-04 02:13 -0800 URL: http://hg.openjdk.java.net/mlvm/mlvm/jdk/rev/ad89276ff677 meth-lazy: tweak diamond-operator problem ! meth-lazy-7023639.bcg.patch Changeset: 5449c899d153 Author:jrose Date: 2012-01-04 02:13 -0800 URL: http://hg.openjdk.java.net/mlvm/mlvm/jdk/rev/5449c899d153 meth-lazy: adjustements for DMH primitives ! meth-lazy-7023639.patch ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev