Libraryless. Click here for Pure Java version (87L/1K).
sinterface IManagedObjectCollector_v { // notify collector that there is an object in a location public void noteObject(VAddr start, int size); // same plus callback after compaction public void noteObject(VAddr start, int size, IVF1<VAddr> updateAddress); // notify collector that there is a pointer in a location public void notePointer(VAddr addr, IVF1<VAddr> updateAddress); default public void notePointer(VAddr addr) { notePointer(addr, null); } public void noteRootPointer(VAddr addr); // notify collector that there is a pointer array in a location public void notePointerArray(VAddr start); // notify collector that there is an int array in a location public void noteIntArray(VAddr start); void noteString(VAddr addr, IVF1<VAddr> updateAddress); //default void noteString(VAddr addr) { noteString(addr, null); } // call after collectAndCompact to get new location of objects // XX - I think we don't need this. Object moves are done through // callbacks (updateAddress) and are incremental and concurrent now VAddr getNewLocation(VAddr addr); }
Began life as a copy of #1029239
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031716 |
| Snippet name: | IManagedObjectCollector_v - for virtual addresses |
| Eternal ID of this version: | #1031716/3 |
| Text MD5: | de16b5ebff13a3a32115bc120bb34b66 |
| Transpilation MD5: | d977be93beb82d889eaeaab4a64558da |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-28 20:58:17 |
| Source code size: | 1141 bytes / 28 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 391 / 607 |
| Version history: | 2 change(s) |
| Referenced in: | #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |