Libraryless. Click here for Pure Java version (2868L/17K).
1 | srecord DoubleVAddr (VAddr addr1, VAddr addr2) implements VAddr { |
2 | replace Addr with int. |
3 | replace BoxedAddr with Int. |
4 | |
5 | public int get() { ret addr1!; } |
6 | public int get(Addr ofs) { ret addr1.get(ofs); } |
7 | public void set(int val) { addr1.set(val); addr2.set(val); } |
8 | public void set(Addr ofs, int val) { addr1.set(ofs, val); addr2.set(ofs, val); } |
9 | |
10 | public VAddr plus(Addr ofs) { ret DoubleVAddr(addr1.plus(ofs), addr2.plus(ofs)); } |
11 | } |
Began life as a copy of #1031714
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031717 |
Snippet name: | DoubleVAddr - two addresses at once (while moving object in garbage collector) |
Eternal ID of this version: | #1031717/8 |
Text MD5: | 9946a675a2dacd520324f95f648f85b5 |
Transpilation MD5: | 0abf145fb2b7ce9dee9e16e8ebf31818 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-28 21:03:33 |
Source code size: | 455 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 157 / 238 |
Version history: | 7 change(s) |
Referenced in: | [show references] |