Skip to content

Instantly share code, notes, and snippets.

@0x277F
0x277F / klass.md
Last active April 18, 2021 12:22
Java klass.hpp memory layout
Index Field Name Size Offset Completely Useless Column Field Type
1 Header 8 +0 +0 Unknown
2 Klass Pointer Size +8 +8 *Klass to java/lang/Class
3 C++ Vtbl Pointer Size +16 +12 Unknown Pointer
4 Layout Helper 4 +24 +16 i32
5 Super Offset 4 +28 +20 u32
6 Name Pointer Size + 32 +24 *Symbol (linked list type?)
7 Secondary Super Cache Pointer Size +40 +28 *Klass
8 Secondary Supers Pointer Size +48 +32 Array<*Klass>
@aikar
aikar / TaskChain.java
Last active August 9, 2022 11:20
TaskChain v2.6 - Java 8 Version - Released Open Source Under MIT - Pre Java8 version here: https://gist.github.com/aikar/9010136 - learn about TC: https://aikar.co/2015/07/26/async-development-java-control-flow-for-bukkit/
/*
* TaskChain for Bukkit
*
* Written by Aikar <[email protected]>
* https://aikar.co
* https://starlis.com
*
* @license MIT
*/
@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no