Re:Why are my Go executable files so large?
by pjmlp on Monday December 30, 2019 @09:31AM
(#21913528)
Better check out from Brian's talk.
Not really, because the class file with invokedynamic bytecodes is supposed to work across all JVM implementations.
Re:Why are my Go executable files so large?
by kjeetgill on Monday December 30, 2019 @01:38PM
(#21915596)
I think we agree? The bytecode is transferrable because the classfile only contains an invokedynamic that calls the LambdaMetaFactory for bootstrapping. The LambdaMetaFactory is provided by the runtime JVM itself so that linkage dosn't introduce an implementation dependence.
Hotspot's just happens to spin an inner class at runtime.
[0]: https://github.com/frohoff/jdk8u-jdk/blob/master/src/share/c...