Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

26
LINES

< > BotCompany Repo | #1029239 // IManagedObjectCollector

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (51L) is out of date.

sinterface IManagedObjectCollector {
  // notify collector that there is an object in a location
  public void noteObject(int start, int size);
  
  // same plus callback after compaction
  public void noteObject(int start, int size, IVF1<Int> updateAddress);
  
  // notify collector that there is a pointer in a location
  public void notePointer(int addr, IVF1<Int> updateAddress);
  
  default public void notePointer(int addr) { notePointer(addr, null); }
  
  public void noteRootPointer(int addr);
  
  // notify collector that there is a pointer array in a location
  public void notePointerArray(int start);
  
  // notify collector that there is an int array in a location
  public void noteIntArray(int start);
  
  void noteString(int addr, IVF1<Int> updateAddress);
  //default void noteString(int addr) { noteString(addr, null); }
  
  // call after collectAndCompact to get new location of objects
  int getNewLocation(int addr);
}

Author comment

Began life as a copy of #1029237

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029239
Snippet name: IManagedObjectCollector
Eternal ID of this version: #1029239/14
Text MD5: f11fae9dd7dd76ebe6648c24391b29e1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-25 12:27:03
Source code size: 971 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 215 / 476
Version history: 13 change(s)
Referenced in: #1029332 - IManagedObjectCollector64
#1031716 - IManagedObjectCollector_v - for virtual addresses
#1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)