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

16
LINES

< > BotCompany Repo | #1016334 // cleanDefunctACCsInAllThreads

JavaX fragment (include)

// disabled because JDK 17
svoid cleanDefunctACCsInAllThreads() {
  /*
  for (Thread t : allThreadsWithACC()) pcall {
    AccessControlContext acc = castGetOpt(t, 'inheritedAccessControlContext);
    if (acc == null) continue;
    L<S> defunctIDs = acc_defunctProgramIDs(acc);
    if (nempty(defunctIDs)) {
      S desc = threadGroupName(t) + " / " + t.getName();
      //print("DEFUNCT ACC IN THREAD! Cleaning. " + defunctIDs + ": " + desc);
      set(t, inheritedAccessControlContext := acc_current());
      //print("CLEANED.");
    }
  }
  */
}

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: #1016334
Snippet name: cleanDefunctACCsInAllThreads
Eternal ID of this version: #1016334/3
Text MD5: d90cb59c3de0c60cf59ff686492c5db2
Author: stefan
Category: javax / maintenance
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-22 15:55:33
Source code size: 563 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 616 / 676
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1016341 - runShutdownHooksWithDefunctACC - possibly not perfect logic
#1016839 - cleanDefunctACCsInAllSwingComponents