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

11
LINES

< > BotCompany Repo | #1016889 // heapWalker_pathToGCRoot

JavaX fragment (include)

static L<Instance> heapWalker_pathToGCRoot(Instance i) {
  new L<Instance> path;
  while licensed {
    path.add(i);
    Instance j = i.getNearestGCRootPointer();
    if (j == null) null; // No path to GC root?
    if (j == i) break;
    i = j;
  }
  ret path;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016889
Snippet name: heapWalker_pathToGCRoot
Eternal ID of this version: #1016889/1
Text MD5: 9d24141f02165613f429f96f8a7771dc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-06 18:04:36
Source code size: 274 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 332 / 366
Referenced in: [show references]