~/talk

MethodHandle Introspection

Talkat JVM Language Summit 2012 · 2012-07-30..08-01· [java]
slides:none on file

Adds limited method-handle introspection to recover the symbolic constant-pool info needed for lambdas, shrinking invokedynamic bootstrap arguments from seven to two and cutting an example classfile overhead from ~560 KB to ~160 KB. Implements a package-private MethodHandleInfo and a reflective getInfo accessor (examples use an Introspector helper to call it), restricts introspection to LDC-able handles and to lookups that pass access checks, and explicitly rules out full method-handle reflection for security and nondeterminism reasons.

AI-written summary · about

  1. 0:00Intro
  2. 0:36Standard disclaimer
  3. 1:14Lambda (JSR 335) implementation options
  4. 2:53Lambda metafactory bootstrap method
  5. 6:10Memory use example: Eclipse plugin directory
  6. 7:33Lambda metalactory bootstrap method
  7. 9:05Why are Method Handles a black box?
  8. 10:55Introspection examples
  9. 12:00Creating an introspector
  10. 12:52Roundtripping through the introspector
  11. 14:26Introspection limitations
  12. 16:43Introspection implementation
  13. 18:18Why not full reflection?
  14. 19:26Security implications
  15. 21:34Behavioral equivalence
  16. 28:29Implementation restrictions
  17. 29:33Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.