IMT (Interface Method Table)
Document the IMT JNode concept in the wiki.
Value: 5
Concept Summary
Method dispatch table for interface calls, optimized over vtable. IMT provides efficient interface method dispatch, reducing the overhead of interface calls compared to traditional vtable approaches.
Key Files
- core/src/core/org/jnode/vm/classmgr/IMT.java
- core/src/core/org/jnode/vm/classmgr/VirtualMethods.java
Occurrences
~150 references in virtual methods package
Wiki Status
NOT documented
Bridges
Virtual methods, JIT compiler, Method dispatch
Instructions
Skill to Use
Use the [[update-wiki|update-wiki skill]] (load with skill({ name: "update-wiki" })) for understanding JNode internals.
Context Research
Study IMT.java and VirtualMethods.java to understand the interface method table. Review how IMT is constructed, how it enables efficient interface dispatch, and how it compares to vtable. Research how the JIT uses IMT for optimization.
Update index.md
- Pages table: Add entry for IMT.md
- Concepts → Pages table: Add "IMT" mapping to [[IMT]]
- Source Path → Pages table: Add mappings for
core/src/core/org/jnode/vm/classmgr/IMT.java
- Task Routing table: Add relevant task route(s)
Task Routing Suggestions
- Interface call optimization: IMT enables efficient interface calls
- Virtual methods debugging: Understanding IMT is key for dispatch issues
- JIT optimization: JIT can inline interface calls with IMT knowledge
Wiki Page Structure
# IMT (Interface Method Table)
> Method dispatch table for interface calls, optimized over vtable.
## Overview
2-3 paragraph explanation of IMT, its role in interface method dispatch, and how it improves performance over vtable approaches.
## Key Components
| Class / File | Role |
|---|---|
| `core/src/core/org/jnode/vm/classmgr/IMT.java` | IMT implementation |
| `core/src/core/org/jnode/vm/classmgr/VirtualMethods.java` | Virtual methods support |
## How It Works
Explanation of how IMT works, how it enables efficient interface dispatch, how it's constructed, and how it compares to vtable.
## Gotchas & Non-Obvious Behavior
- IMT requires careful implementation to maintain correctness
- Interface implementation changing can affect IMT
- JIT must understand IMT for optimization
## Related Pages
- [[Virtual-Methods]]
- [[vtable]]
- [[CompiledIMT]]
Related Concepts: Interface methods, Method dispatch, vtable, JIT, Virtual methods
IMT (Interface Method Table)
Value: 5
Concept Summary
Method dispatch table for interface calls, optimized over vtable. IMT provides efficient interface method dispatch, reducing the overhead of interface calls compared to traditional vtable approaches.
Key Files
Occurrences
~150 references in virtual methods package
Wiki Status
NOT documented
Bridges
Virtual methods, JIT compiler, Method dispatch
Instructions
Skill to Use
Use the [[update-wiki|update-wiki skill]] (load with
skill({ name: "update-wiki" })) for understanding JNode internals.Context Research
Study IMT.java and VirtualMethods.java to understand the interface method table. Review how IMT is constructed, how it enables efficient interface dispatch, and how it compares to vtable. Research how the JIT uses IMT for optimization.
Update index.md
core/src/core/org/jnode/vm/classmgr/IMT.javaTask Routing Suggestions
Wiki Page Structure
Related Concepts: Interface methods, Method dispatch, vtable, JIT, Virtual methods