Uses 1113K of libraries. Click here for Pure Java version (7584L/40K).
!7 set flag ExternalMutex_debug. cm > DynTestModule { void test { testExternalMetaMutexAndConvertObjectMetaToMap(); testMetaMapPut(); } void testExternalMetaMutexAndConvertObjectMetaToMap { new MetaWithExternalMutex o; print(meta := toStringWithIdentity(o._getMeta())); convertObjectMetaToMap(o); print(meta := toStringWithIdentity(o._getMeta())); convertObjectMetaToMap(o); print(meta := toStringWithIdentity(o._getMeta())); } void testMetaMapPut { new Meta o; print(meta := toStringWithIdentity(o._getMeta())); metaMapPut(o, hello := "World"); print(meta := toStringWithIdentity(o._getMeta())); metaMapPut(o, hello := null); metaMapPut(o, null := "hello"); // we assume meta never reverts to null (makes metaMapPut a lot faster) print(meta := toStringWithIdentity(assertNotNull(o._getMeta()))); } }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1031854 |
Snippet name: | Meta Map Test |
Eternal ID of this version: | #1031854/3 |
Text MD5: | f60f6586883ca7cd981b7dd0677cee01 |
Transpilation MD5: | f24d277f57be9f377fa2537b84b5f67d |
Author: | stefan |
Category: | javax / reasoning |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-07-16 06:18:10 |
Source code size: | 923 bytes / 31 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 129 / 204 |
Version history: | 2 change(s) |
Referenced in: | -