《SH JUG - java debugging - from desktop to cloud》.pdf
文本预览下载声明
Java debugging:
from desktop to cloud
陆 传胜
(@jonathan 陆)
Agenda
• Daily debugging
• Behind the curtain
• Dance on cloud
Daily debugging
Ma Nong
Tools
Your App
Scenarios of Java debugging
Your app
Eclipse/Intel
jdb
lij
Your app
Socket/shared_mem
Eclipse/Intel
jdb
lij
Specification behind the curtain
• Java Platform Debugging Architecture
JVMTI
JDWP
JDI
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8888
-
Implementation behind the curtain
templateTable Patch-bytecode … JVMTI
Post JVMTI event
Copiled code Set bp deopt
Set breakpoint …
JDWP
Threads::create_vm Exec_onload
Threads::create_vm
Setup callbacks
_init_agent
Setup agent
JDI
/jdk7u/jdk7u/hotspot/file/f547ab7c2681/src/cpu/x86/vm/templateTable_x86_64. c
显示全部