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

11
LINES

< > BotCompany Repo | #1017320 // Test enabling assembly print at runtime (no workee)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (5535L/40K).

!7

import com.sun.management.HotSpotDiagnosticMXBean;

p-exp {
  HotSpotDiagnosticMXBean bean = ManagementFactory.getPlatformMXBean(HotSpotDiagnosticMXBean.class);
  S flag = "+PrintAssembly";
  print(flag + "=" + bean.getVMOption(flag));
  bean.setVMOption(flag, "true");
  print(flag + "=" + bean.getVMOption(flag));
}

Author comment

Began life as a copy of #1017319

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: #1017320
Snippet name: Test enabling assembly print at runtime (no workee)
Eternal ID of this version: #1017320/5
Text MD5: a3e7e516eddecb5ab710f421e3050742
Transpilation MD5: 4aec5fa346e340f9e9b3919e1bc057b1
Author: stefan
Category: javax / discovery
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-16 20:56:31
Source code size: 331 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 241 / 616
Version history: 4 change(s)
Referenced in: [show references]