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

28
LINES

< > BotCompany Repo | #1031716 // IManagedObjectCollector_v - for virtual addresses

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

Libraryless. Click here for Pure Java version (87L/1K).

1  
sinterface IManagedObjectCollector_v {
2  
  // notify collector that there is an object in a location
3  
  public void noteObject(VAddr start, int size);
4  
  
5  
  // same plus callback after compaction
6  
  public void noteObject(VAddr start, int size, IVF1<VAddr> updateAddress);
7  
  
8  
  // notify collector that there is a pointer in a location
9  
  public void notePointer(VAddr addr, IVF1<VAddr> updateAddress);
10  
  
11  
  default public void notePointer(VAddr addr) { notePointer(addr, null); }
12  
  
13  
  public void noteRootPointer(VAddr addr);
14  
  
15  
  // notify collector that there is a pointer array in a location
16  
  public void notePointerArray(VAddr start);
17  
  
18  
  // notify collector that there is an int array in a location
19  
  public void noteIntArray(VAddr start);
20  
  
21  
  void noteString(VAddr addr, IVF1<VAddr> updateAddress);
22  
  //default void noteString(VAddr addr) { noteString(addr, null); }
23  
  
24  
  // call after collectAndCompact to get new location of objects
25  
  // XX - I think we don't need this. Object moves are done through
26  
  // callbacks (updateAddress) and are incremental and concurrent now
27  
  VAddr getNewLocation(VAddr addr);
28  
}

Author comment

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: 168 / 337
Version history: 2 change(s)
Referenced in: [show references]